Data AcQuisition And Real-Time AnalysisScope - Spectrum - Spectrogram - Signal Generator
Software for Windows
Science with your Sound Card!
Contact us about
This is the overall On/Off button for the Pitch-to-MIDI process. When it is on, notes detected by the Pitch Track process are translated into MIDI events. There will be a separate event for each MIDI Voice that is active, but they will all start at the same time unless you specifically set a Note Delay value.
While the Pitch-to-MIDI On/Off button is active, the elapsed time (in seconds) is shown to the left of the button. This is especially useful with DaqMusiq setups like the "Glossy" family, which don't depend on Pitch Track input and whose random performances can be replicated exactly by setting the same starting random seed. If you later want to record a particular passage in a longer performace, you can set the seed and wait for the same elapsed time.
The Pitch Track button doesn't need to be active to use Pitch-to-MIDI. As long as the Spectrogram (Sgram/PT) display is active, the Pitch Track function will be carried out in the background. The display will show the spectrogram of the full input signal, while Pitch-to-MIDI responds only to the tracked pitch.
Use X0=0 (or X0=x) to toggle Pitch-to-MIDI off. This allows a Changes script to turn itself off at the end of a performance. You can use an expression in place of the immediate value to allow Pitch-to-MIDI to be toggled off according to a calculated or random value.
X0=20 is a special case that toggles Pitch-to-MIDI off, but does not remove any Output Display message that used oM="String" to display a Custom Macro Message. This allows a script to detect if some component is missing or invalid, and exit gracefully with an explanatory message. For example, the _MusicData.DQM script must only be run from the Music_from_Anything macro mini-app, which prepares data used by the MIDI script. Attempts to run _MusicData.DQM as a standalone script (such as from the DaqMusiq macro) will result in a "Run Music_from_Anything macro." message.
Note that X0=1 (or any value above 0, other than the above X0=20) causes Pitch-to-MIDI to be toggled off, then immediately back on. This allows you to restart a performance, either repeating the same one, or, if the performance is controlled by random values, giving a completely new performance. If a MIDI recording is in progress, it will continue through the restart.
One way to determine when to end a performance is to read elapsed time in milliseconds via the mT option, or elapsed beats via mB, using a read-only Changes Script Mouse and Miscellaneous Position command.
If you read X0 in a script (such as via UA=X0) it returns 1 if Pitch-to-MIDI has been restarted via the the above X0=1 method at any time since the last manual start, otherwise it returns 0. GlossyTracks uses this in its Percussion script to randomize the random seed only after a manual start, not for each track played. This allows repeating an entire series of tracks exactly.
PitchMIDI=1 turns Pitch-to-MIDI on, PitchMIDI=0 turns it off, and PitchMIDI=x toggles the current state.
Note that both Pitch Track and Spectrogram must be active for MIDI events to be produced.
If you read PitchMIDI (such as by assigning it to a variable, as in X=PitchMIDI) it returns the current state: 0 = Off and 1 = On.
PitchMIDI?m returns the number of milliseconds elapsed, updated on every trace update (10 msec default) during the performance. This is the raw value that is formatted into H:M:S before being shown to the left of the button.
Likewise, PitchMIDI?B returns the number of beats elapsed since the start of the performance. The value is also returned by reading Posn?B via a macro, or mB in a Changes script.
Posn?M returns a count of the number of MIDI note events received from Pitch Track, as does mM in a Changes Script. (This is typically much higher than the number of beats, since it is incremented on every trace update during a DaqMusiq performance.)
Questions? Comments? Contact us!We respond to ALL inquiries, typically within 24 hrs.
Over 35 Years of Innovative Instrumentation
© Copyright 2007 - 2023 by Interstellar Research
All rights reserved