
Audio::LADSPA::Plugin::Sequencer4 - Really simple 4-step sequencer

use Audio::LADSPA::Network;
use Audio::LADSPA::Plugin::Play;
use Audio::LADSPA::Plugin::Sequencer4;
my $net = Audio::LADSPA::Network->new( buffer_size => 100 );
my $seq = $net->add_plugin( 'Audio::LADSPA::Plugin::Sequencer4' );
my $sine = $net->add_plugin( id => 1047);
my $delay = $net->add_plugin( id => 1043);
my $play = $net->add_plugin( 'Audio::LADSPA::Plugin::Play' );
$net->connect($seq,'Frequency',$sine, 'Frequency (Hz)');
$net->connect($sine,'Output', $delay, 'Input');
$net->connect($delay,'Output', $play, 'Input');
$sine->set(Amplitude => 1);
$delay->set('Delay (Seconds)' => 0.5);
$delay->set('Dry/Wet Balance' => 0.3);
$seq->set('Step 1',70); # midi note numbers
$seq->set('Step 2',82);
$seq->set('Step 3',96);
$seq->set('Step 4',108);
$seq->set('Run/Step',150);
while (1) {
$net->run(100);
}

Audio::LADSPA::Sequencer4 is a simple step-sequencer for use in an Audio::LADSPA::Network.
"Run/Step"
how many times run() must be called before a new step is triggered
"Step 1" .. "Step 4"
The note value for step 1 .. 4 as a MIDI note number.
"Frequency"
Output frequency of the current step (in Hz)
"Trigger"
Trigger for start of each step.
More information can be requested with the pluginfo tool:
pluginfo --package Audio::LADSPA::Plugin::Sequencer4

Audio::LADSPA::Network, Audio::LADSPA::Plugin::Perl.

Copyright (C) 2003 Joost Diepenmaat <jdiepen@cpan.org>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.