This browser does not support WEB MIDI API. Please use a browser that supports Web MIDI API.

Failed to connect to MIDI. Please try again. Please make sure you are using a browser that supports Web MIDI API.

No MIDI devices found. Please connect a MIDI device to continue.

base 10 bitmask: 0 <-- feed this to binary scale ops
reverse bitmask: R000000000000 <-- you could use this but too long for patterns
active notes:
pitch classes:

This is intended for use with Teletype 4.0's binary scale ops. If you have a MIDI keyboard connected, you should be able to play notes and generate the appropriate bitmask for those notes.

For example, if you play a C major chord, the base 10 bitmask should show "145". You could then do something like this in Teletype:

  N.BX 0 0 145;
  JF.NOTE N.BX 0 RND 7 V 5;
This would assign the C major chord "scale" to scale index 1, and then play a random note in the chord over two octaves on Just Friends.

Note that you can get this information entirely from Teletype, as well, if you plug a MIDI keyboard into it, using a scene like this:

  MIDI 2 DECIMAL

  DECIMAL: %1
  RBINARY: R%R2



  #1
  L 1 MI.NL: $ 2

  #2
  A BSET A % MI.N 12
  PRINT 1 A
  PRINT 2 A

  #3
  L 1 MI.OL: $ 4

  #4
  A BCLR A % MI.O 12
  PRINT 1 A
  PRINT 2 A