Daqarta
Data AcQuisition And Real-Time Analysis
Scope - Spectrum - Spectrogram - Signal Generator
Software for Windows
Science with your Sound Card!
The following is from the Daqarta Help system:

Features:

Oscilloscope

Spectrum Analyzer

8-Channel
Signal Generator

(Absolutely FREE!)

Spectrogram

Pitch Tracker

Pitch-to-MIDI

DaqMusiq Generator
(Free Music... Forever!)

Engine Simulator

LCR Meter

Remote Operation

DC Measurements

True RMS Voltmeter

Sound Level Meter

Frequency Counter
    Period
    Event
    Spectral Event

    Temperature
    Pressure
    MHz Frequencies

Data Logger

Waveform Averager

Histogram

Post-Stimulus Time
Histogram (PSTH)

THD Meter

IMD Meter

Precision Phase Meter

Pulse Meter

Macro System

Multi-Trace Arrays

Trigger Controls

Auto-Calibration

Spectral Peak Track

Spectrum Limit Testing

Direct-to-Disk Recording

Accessibility

Applications:

Frequency response

Distortion measurement

Speech and music

Microphone calibration

Loudspeaker test

Auditory phenomena

Musical instrument tuning

Animal sound

Evoked potentials

Rotating machinery

Automotive

Product test

Contact us about
your application!

Pitch-to-MIDI On/Off

Controls: Sgram/PT Dialog >> Pitch-to-MIDI >> On/Off
Changes: X0=0, X0=1
Macro: PitchMIDI

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.

If you activate Pitch-to-MIDI without any signal present (Input and Generator both off), an internal random source will be used as the pitch source. This is the default DaqMusiq mode.


MIDI Changes Script:

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.

Note that X0=1 (or any value above 0) 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.


Macro Notes:

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.

This same value is returned via the Posn?T option of the read-only Mouse and Miscellaneous Position macro, or via the mT option of the Changes Script Mouse and Miscellaneous Position command.

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.)


See also Pitch-to-MIDI dialog, Pitch Track Toolbox - Overview, Spectrogram / Pitch Track Controls, Spectrogram / Pitch Track (Sgram/PT)

GO:

Questions? Comments? Contact us!

We respond to ALL inquiries, typically within 24 hrs.
INTERSTELLAR RESEARCH:
Over 30 Years of Innovative Instrumentation
© Copyright 2007 - 2017 by Interstellar Research
All rights reserved