[NetBehaviour] ai ahuh

james at jwm-art.net james at jwm-art.net
Mon May 22 22:42:14 CEST 2006


wcnt-1.2/jwmsynth
//------------------------------------------------------------------------
//
//  ai_uhuh.wc:
//
//      re-arranges a recording of a 1960s 12-chord Oscar Schmidt autoharp
//      played by Alan Sondheim.
//
//		get the recording at http://www.asondheim.org/ai.mp3
//
//       	((and convert it to a wav (using mpg321) (or something)))
//
//	wcnt - wav composer not toilet
//
//		download it at wcnt.sourceforge.net (linux not windows)
//
//	the output of this file processed by wcnt is available at
//	the following location:
//
//		http://www.jwm-art.net/misc/ai_uhuh.mp3
//
//	this file at the following location:
//
//		http://www.jwm-art.net/misc/ai_uhuh.wc
//
//------------------------------------------------------------------------

samplerate  44100
bpm         120
signature   4/4

time_map
time1
    meter_map
    meter_map
    bpm_map
    bpm_map
time1

constant one value 1.0 one

//------------------------------------------------------------------------

riff
riff1
    quarter_value   64
    notelist
        note name c-1  pos 0    len 28  vel 1.0
        note name d0  pos 32   len 12  vel 1.0
        note name c0  pos 48   len 32  vel 1.0
        note name a-2  pos 84   len 21  vel 1.0
        note name c0  pos 112  len 12  vel 1.0
        note name f0  pos 128  len 42  vel 1.0
        note name c1  pos 176  len 12  vel 1.0
        note name d0  pos 192  len 12  vel 1.0
        note name c-2  pos 224  len 12  vel 1.0
    notelist
riff1

riff
riff1z
    quarter_value   64
    notelist
        note name c0  pos 0    len 11  vel 1.0
        note name d0  pos 12   len 11  vel 1.0
        note name c0  pos 32   len 11  vel 1.0
        note name c-1  pos 48   len 11  vel 1.0
        note name d0  pos 64   len 11  vel 1.0
        note name c0  pos 84   len 11  vel 1.0
        note name e0  pos 96   len 11  vel 1.0
        note name e0  pos 112  len 11  vel 1.0
        note name c-1  pos 128  len 11  vel 1.0
        note name f0  pos 144  len 11  vel 1.0
        note name c0  pos 160  len 11  vel 1.0
        note name g0  pos 176  len 11  vel 1.0
        note name c0  pos 192  len 11  vel 1.0
        note name a0  pos 208  len 11  vel 1.0
        note name d-1  pos 224  len 11  vel 1.0
        note name c0  pos 240  len 11  vel 1.0
    notelist
riff1z

sequencer
seq1
    track
        riff_node
            riff riff1  bar 0   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 1   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 2   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 3   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 4   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 5   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 6   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 7   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 8   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 9   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 10   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 11   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 12   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 13   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 14   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 15  transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 16   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 17   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 18   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 19   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 20   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 21   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 22   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1  bar 23   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 24   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 25   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 26   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 27   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 28   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 29   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 30   transpose 0
            start_len 0 end_len 0
        riff_node
            riff riff1z  bar 31  transpose 0
            start_len 0 end_len 0
    track
    in_bar              time1 out_bar
    in_bar_trig         time1 out_bar_trig
    in_pos_step_size    time1 out_pos_step_size
    in_beats_per_bar    time1 out_beats_per_bar
    in_beat_value       time1 out_beat_value
    velocity_response_time 5
seq1

pattern_trig
strig1
    in_trig  seq1 out_note_on_trig
    pattern  1000
strig1

pattern_trig
strig2
    in_trig  seq1 out_note_on_trig
    pattern  0100
strig2

pattern_trig
strig3
    in_trig  seq1 out_note_on_trig
    pattern  0010
strig3

pattern_trig
strig4
    in_trig  seq1 out_note_on_trig
    pattern  0001
strig4

// set frequency for sample to playback at:

osc_clock
osc1
        in_note_on_trig     strig1 out_trig
        in_note_slide_trig  seq1    out_note_slide_trig
        in_play_state       off
        in_frequency        seq1    out_frequency
        in_freq_mod1        zzsinwav out_output
        in_freq_mod2        off
        octave_offset       4
        tuning_semitones    0.06
        portamento_time     150.0
        response_time       8.0
        freq_mod1_size      8.0
        freq_mod2_size      1
osc1

osc_clock
osc2
        in_note_on_trig     strig2 out_trig
        in_note_slide_trig  seq1    out_note_slide_trig
        in_play_state       off
        in_frequency        seq1    out_frequency
        in_freq_mod1        zzsinwav out_output
        in_freq_mod2        off
        octave_offset       2
        tuning_semitones    0.07
        portamento_time     150.0
        response_time       8.0
        freq_mod1_size      8.0
        freq_mod2_size      1
osc2

osc_clock
osc3
        in_note_on_trig     strig3 out_trig
        in_note_slide_trig  seq1    out_note_slide_trig
        in_play_state       off
        in_frequency        seq1    out_frequency
        in_freq_mod1        zzsinwav out_output
        in_freq_mod2        off
        octave_offset       1
        tuning_semitones    0.8
        portamento_time     150.0
        response_time       0.125
        freq_mod1_size      0.125
        freq_mod2_size      1
osc3

osc_clock
osc4
        in_note_on_trig     strig4 out_trig
        in_note_slide_trig  seq1    out_note_slide_trig
        in_play_state       off
        in_frequency        seq1    out_frequency
        in_freq_mod1        zzsinwav out_output
        in_freq_mod2        off
        octave_offset       0
        tuning_semitones    0.9
        portamento_time     150.0
        response_time       0.125
        freq_mod1_size      0.125
        freq_mod2_size      1
osc4


clock fmclock
    in_freq_mod1   off
    freq           0.000083725
    freq_mod1_size 1.0
fmclock

clock fmclockb
    in_freq_mod1   off
    freq           0.000083725
    freq_mod1_size 1.0
fmclockb

sine_wave fmsinewave
    in_phase_trig  fmclock out_phase_trig
    in_deg_size    fmclock out_deg_size
    recycle_mode         off
    on_trig_reset_phase  off
    phase_cycles         1.0
fmsinewave

sine_wave fmsinewaveb
    in_phase_trig  fmclockb out_phase_trig
    in_deg_size    fmclockb out_deg_size
    recycle_mode         off
    on_trig_reset_phase  off
    phase_cycles         1.0
fmsinewaveb


clock zzclok
    in_freq_mod1   off
    freq           0.12725
    freq_mod1_size 1.0
zzclok


sine_wave zzsinwav
    in_phase_trig  zzclok out_phase_trig
    in_deg_size    zzclok out_deg_size
    recycle_mode         off
    on_trig_reset_phase  off
    phase_cycles         1.0
zzsinwav

//---------------------------------------------------------
// the sample:
//
// ai.wav is 235.259 seconds, 10374912 samples

wavfilein
ai_wav
    filename    samples/ai.wav
    root_note   c0
ai_wav

clock fq1
    in_freq_mod1   off
    freq           261.626
    freq_mod1_size 1.0
fq1
clock fq2
    in_freq_mod1   off
    freq           262.626
    freq_mod1_size 1.0
fq2
clock fq3
    in_freq_mod1   off
    freq           263.626
    freq_mod1_size 1.0
fq3
clock fq4
    in_freq_mod1   off
    freq           264.626
    freq_mod1_size 1.0
fq4


rnd_trigger
rst1
    in_trig  osc1 out_phase_trig
    probability      0.95
    not_probability  0.125
rst1

rnd_trigger
rst2
    in_trig  osc2 out_phase_trig
    probability      0.00625
    not_probability  0.125
rst2

rnd_trigger
rst3
    in_trig  osc3 out_phase_trig
    probability      0.75
    not_probability  0.125
rst3

rnd_trigger
rst4
    in_trig  osc4 out_phase_trig
    probability      0.0125
    not_probability  0.125
rst4

sampler
sampler1
        in_play_trig        rst1	out_trig
        in_stop_trig        off
        in_start_pos_mod    fmsinewave    out_output
        in_deg_size         fq1        out_deg_size
        wavfile                 ai_wav
        play_dir                fwd
        play_mode               wrap
        jump_mode               play
        start_pos_min           125000
        start_pos_max           10000000
        loop_mode               bi
        loop_start_pos          2000
        loop_end_pos            332546
        loop_is_offset          on
        bi-directional_offset   0
        anti_clip_samples       50
        anti_clip_each_end      on
        zero_search_range       15
        degsize_amount          0.0
sampler1

sampler
sampler2
        in_play_trig        rst2	out_trig
        in_stop_trig        off
        in_start_pos_mod    fmsinewave    out_output
        in_deg_size         fq2        out_deg_size
        wavfile                 ai_wav
        play_dir                fwd
        play_mode               wrap
        jump_mode               play
        start_pos_min           125000
        start_pos_max           10000000
        loop_mode               bi
        loop_start_pos          2000
        loop_end_pos            332544
        loop_is_offset          on
        bi-directional_offset   0
        anti_clip_samples       50
        anti_clip_each_end      on
        zero_search_range       15
        degsize_amount          1.0
sampler2

sampler
sampler3
        in_play_trig        rst3	out_trig
        in_stop_trig        off
        in_start_pos_mod    fmsinewaveb    out_output
        in_deg_size         fq3        out_deg_size
        wavfile                 ai_wav
        play_dir                fwd
        play_mode               wrap
        jump_mode               play
        start_pos_min           125000
        start_pos_max           10000000
        loop_mode               bi
        loop_start_pos          2000
        loop_end_pos            332464
        loop_is_offset          on
        bi-directional_offset   0
        anti_clip_samples       50
        anti_clip_each_end      on
        zero_search_range       15
        degsize_amount          1.0
sampler3

sampler
sampler4
        in_play_trig        rst4	out_trig
        in_stop_trig        off
        in_start_pos_mod    fmsinewaveb    out_output
        in_deg_size         fq4        out_deg_size
        wavfile                 ai_wav
        play_dir                fwd
        play_mode               wrap
        jump_mode               play
        start_pos_min           125000
        start_pos_max           10000000
        loop_mode               bi
        loop_start_pos          2000
        loop_end_pos            332454
        loop_is_offset          on
        bi-directional_offset   0
        anti_clip_samples       50
        anti_clip_each_end      on
        zero_search_range       15
        degsize_amount         1.0
sampler4


multiplier
dl1
    in_signal   sampler1    out_l
    in_modifier one       out_output
dl1

multiplier
dr1
    in_signal   sampler1    out_r
    in_modifier one       out_output
dr1

multiplier
dl2
    in_signal   sampler2    out_l
    in_modifier one       out_output
dl2

multiplier
dr2
    in_signal   sampler2    out_r
    in_modifier one       out_output
dr2

multiplier
dl3
    in_signal   sampler3    out_l
    in_modifier one       out_output
dl3

multiplier
dr3
    in_signal   sampler3    out_r
    in_modifier one       out_output
dr3

multiplier
dl4
    in_signal   sampler4    out_l
    in_modifier one       out_output
dl4

multiplier
dr4
    in_signal   sampler4    out_r
    in_modifier one       out_output
dr4

echo
lecho1
    in_signal       dl1 out_output
    in_gain_mod     off
    in_feedback     recho1   out_wet_output
    in_feedback_mod off
    delay_time          591.5
    gain                0.75
    gain_modsize        0.0
    feedback            0.4825
    feedback_modsize    0.0
    wet/dry             1.0
lecho1

echo
recho1
    in_signal       dr1 out_output
    in_gain_mod     off
    in_feedback     lecho1   out_wet_output
    in_feedback_mod off
    delay_time          427.5
    gain                0.75
    gain_modsize        0.0
    feedback            0.4825
    feedback_modsize    0.0
    wet/dry             1.0
recho1

echo
lecho2
    in_signal       dl2 out_output
    in_gain_mod     off
    in_feedback     recho2   out_wet_output
    in_feedback_mod off
    delay_time          381.5
    gain                0.475
    gain_modsize        0.0
    feedback            0.4825
    feedback_modsize    0.0
    wet/dry             1.0
lecho2

echo
recho2
    in_signal       dr2 out_output
    in_gain_mod     off
    in_feedback     lecho2   out_wet_output
    in_feedback_mod off
    delay_time          287.5
    gain                0.475
    gain_modsize        0.0
    feedback            0.4825
    feedback_modsize    0.0
    wet/dry             1.0
recho2

echo
lecho3
    in_signal       dl3 out_output
    in_gain_mod     off
    in_feedback     recho3   out_wet_output
    in_feedback_mod off
    delay_time          112.5
    gain                0.75
    gain_modsize        0.0
    feedback            0.4825
    feedback_modsize    0.0
    wet/dry             1.0
lecho3

echo
recho3
    in_signal       dr3 out_output
    in_gain_mod     off
    in_feedback     lecho3   out_wet_output
    in_feedback_mod off
    delay_time          78.5
    gain                0.75
    gain_modsize        0.0
    feedback            0.4825
    feedback_modsize    0.0
    wet/dry             1.0
recho3

echo
lecho4
    in_signal       dl4 out_output
    in_gain_mod     off
    in_feedback     recho4   out_wet_output
    in_feedback_mod off
    delay_time          52.5
    gain                0.475
    gain_modsize        0.0
    feedback            0.4825
    feedback_modsize    0.0
    wet/dry             1.0
lecho4

echo
recho4
    in_signal       dr4 out_output
    in_gain_mod     off
    in_feedback     lecho4   out_wet_output
    in_feedback_mod off
    delay_time          25.5
    gain                0.475
    gain_modsize        0.0
    feedback            0.4825
    feedback_modsize    0.0
    wet/dry             1.0
recho4

wcnt_signal sdl1 in_signal dl1 out_output level 0.35 sdl1
wcnt_signal sdr1 in_signal dr1 out_output level 0.35 sdr1
wcnt_signal sdl2 in_signal dl2 out_output level 0.1235 sdl2
wcnt_signal sdr2 in_signal dr2 out_output level 0.1235 sdr2
wcnt_signal sdl3 in_signal dl3 out_output level 0.35 sdl3
wcnt_signal sdr3 in_signal dr3 out_output level 0.35 sdr3
wcnt_signal sdl4 in_signal dl4 out_output level 0.1235 sdl4
wcnt_signal sdr4 in_signal dr4 out_output level 0.1235 sdr4

combiner
smix_l
    signals
        synthmod name sdl1
        synthmod name sdl2
        synthmod name sdl3
        synthmod name sdl4
    signals
    mean_total off
smix_l

combiner
smix_r
    signals
        synthmod name sdr1
        synthmod name sdr2
        synthmod name sdr3
        synthmod name sdr4
    signals
    mean_total off
smix_r

wcnt_signal cl1 in_signal smix_l    out_output level 0.475 cl1
wcnt_signal cr1 in_signal smix_r    out_output level 0.475 cr1
wcnt_signal cl2 in_signal lecho1    out_output level 0.475 cl2
wcnt_signal cr2 in_signal recho1    out_output level 0.475 cr2
wcnt_signal cl3 in_signal lecho2    out_output level 0.475 cl3
wcnt_signal cr3 in_signal recho2    out_output level 0.475 cr3
wcnt_signal cl4 in_signal lecho3    out_output level 0.475 cl4
wcnt_signal cr4 in_signal recho3    out_output level 0.475 cr4
wcnt_signal cl5 in_signal lecho4    out_output level 0.475 cl5
wcnt_signal cr5 in_signal recho4    out_output level 0.475 cr5

combiner
mix_l
        signals
                synthmod name cl1
                synthmod name cl2
                synthmod name cl3
                synthmod name cl4
                synthmod name cl5
        signals
        mean_total off
mix_l

combiner
mix_r
        signals
                synthmod name cr1
                synthmod name cr2
                synthmod name cr3
                synthmod name cr4
                synthmod name cr5
        signals
        mean_total off
mix_r

// amplify

stereo_amp
amp1
    in_l        mix_l    out_output
    in_r        mix_r    out_output
    in_amp_eg       one   out_output
    in_amp_mod      off
    left_amplitude  32000
    right_amplitude 32000
    amp_mod_size    0.0
    clip_level      32767
amp1

wavfile_out
wav1
    in_left     amp1    out_left
    in_right    amp1    out_right
    in_bar      time1   out_bar
    in_bar_trig time1   out_bar_trig
    filename    ai_ahuh.wav
    start_bar   0
    end_bar     96
wav1

// setup how long to process:

wcnt_exit
wcnt_exit_module
    in_bar  time1   out_bar
    exit_bar    96
wcnt_exit_module

//------------------------------------------------------------------------
// End Of File _jwm 2006.
//------------------------------------------------------------------------
wcnt-1.2/jwmsynth




More information about the NetBehaviour mailing list