b4e has asked for the wisdom of the Perl Monks concerning the following question:
however, this does NOT work...sub sound { my $WAV = new Win32::Sound::WaveOut(10000, 8, 1); my $length = $input2->get(); $length = $length*2; my $data2 = ""; my $counter = 0; for my $i (1..$length) #foreach my $loop (1..$length) { my $v2 = sin($counter/2*3.14) * 128 + 128; $data2 .= pack("c", $v2); $counter += ($add * 10)/10000; $WAV->Load($data2); # get it $WAV->Write(); # hear it $WAV->Unload(); # drop it &new_add; #get new $add value from a scale } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: building a "realtime" software synth
by Joost (Canon) on Jul 20, 2004 at 15:04 UTC | |
by b4e (Sexton) on Jul 20, 2004 at 15:26 UTC | |
by Joost (Canon) on Jul 20, 2004 at 15:38 UTC | |
by b4e (Sexton) on Jul 20, 2004 at 15:57 UTC | |
by Joost (Canon) on Jul 20, 2004 at 16:11 UTC | |
| |
|
MIDI?
by chanio (Priest) on Jul 20, 2004 at 22:30 UTC | |