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:



Spectrum Analyzer

Signal Generator

(Absolutely FREE!)


Pitch Tracker


DaqMusiq Generator
(Free Music... Forever!)

Engine Simulator

LCR Meter

Remote Operation

DC Measurements

True RMS Voltmeter

Sound Level Meter

Frequency Counter
    Spectral Event

    MHz Frequencies

Data Logger

Waveform Averager


Post-Stimulus Time
Histogram (PSTH)

THD Meter

IMD Meter

Precision Phase Meter

Pulse Meter

Macro System

Multi-Trace Arrays

Trigger Controls


Spectral Peak Track

Spectrum Limit Testing

Direct-to-Disk Recording



Frequency response

Distortion measurement

Speech and music

Microphone calibration

Loudspeaker test

Auditory phenomena

Musical instrument tuning

Animal sound

Evoked potentials

Rotating machinery


Product test

Contact us about
your application!

Note Lag

Controls: Sgram/PT Dialog >> Pitch-to-MIDI >> Setup
Changes: gv=n

Note Lag adds a small delay before each note is played by a MIDI Voice Setup. If all voices have Note Lag set to zero, every note will be "on the beat". Note Lag allows voices to be slightly desynchronized, more like a group of real human musicians and less "machine"-like.

For even more realism, you can vary the Note Lag during the performance using a Changes script.

The delay time is the Note Lag value multiplied by the Trace Update interval, which is typically 10 msec. A Note Lag of 1 would thus give a delay of 10 msec, which is just noticeable. The maximum Note Lag value of 15 would give a delay of 150 msec, which would be very noticeable.

In general, the total delay should be kept under the Tempo msec value to avoid interference between beats.

Note Lag can only delay notes. However, you can use it to get voices that are ahead of the beat. Consider that in most cases, there is no absolute reference to determine what is "on the beat" and what is early or late... everything is relative. So, you simply add a fixed Lag to all the other voices (as well as Percussion Lag for any active Percussion Instruments), and define that time as "the beat". Any voice that has less Lag will be ahead; any with more will be behind.

MIDI Changes Script:

Use gv=n to set Note Lag for Voice v to the value of n, which may be any unsigned integer or valid expression, including current MIDI control values, random values, current computer keyboard states or mouse position, input or buffered notes, or oscillators. The value will be limited to a range of 0 to 15.

For example, g2=4 sets Note Lag for Voice 2 to a value of 4, which would give a 40 msec lag with the default 10 msec Trace Update interval.

You can use "voice" 9 to set Note Lag for all 8 voices at once.

See also MIDI Voice Setup Dialogs, Pitch-to-MIDI dialog, Pitch Track Toolbox - Overview


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