spiffyscore

Check-in [daa0ddb3ad]
Login
Overview
SHA1:daa0ddb3adc6eff14b94270b181b5d5a494c0234
Date: 2011-11-15 15:47:11
User: brian
Comment:Attempted to make a csound based on midi. Failed.
Timelines: family | ancestors | descendants | both | feature/midi
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2011-11-15
22:08
[befd61cab9] Closed-Leaf: Successfully got the program to output a MIDI file instead of a csound score (user: brian, tags: feature/midi)
15:47
[daa0ddb3ad] Attempted to make a csound based on midi. Failed. (user: brian, tags: feature/midi)
2011-11-07
01:39
[4f872339ff] Altered the sample-based instruments to ine Csound string formatting instead of a billion if clauses to choose what file to play (user: brian, tags: develop)
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Modified cfg.orc from [feddf36ca4] to [db9c923851].

     1      1   sr=44100
     2      2   ksmps=20
     3         -nchnls=1
            3  +nchnls=2
            4  +
            5  +;isf sfload "samples/acoustic_grand_piano_ydp.sf2"
            6  +isf sfload "samples/default.sf2"
            7  +sfplist isf
            8  +sfpassign 0, isf
            9  +;gipre sfpreset 0, 0, isf, 0
           10  +
           11  +;gienginenum1 fluidEngine
           12  +;isfnum1 fluidLoad "samples/default.sf2"
     4     13   
     5     14   instr 1
     6     15   ;    kcps = 220
     7     16   ;    icps = 220
     8     17   ;    ifn  = 0
     9     18   ;    imeth = p4
    10     19   ;;    asig pluck 0.7, cpspch(p5), cpspch(p6), ifn, imeth, .1, 10
    11     20       asig pluck   p4, cpspch(p5), cpspch(p6), p7, p8 p9 p10
    12         -    out asig
           21  +    outs asig,asig
    13     22   endin
    14     23   
    15     24   instr 2
    16     25       kenv linen p4, .1, p3, .2; envelope
    17     26       asound oscili kenv, cpspch(p5), p6; oscillator
    18         -    out asound
           27  +    outs asound,asound
    19     28   endin
    20     29   
    21     30   instr 3
    22     31   ;    pylassigni "note", p5
    23     32   ;    pylruni "sample_file = 'samples/bass/%.2f.wav' % note"
    24     33   ;    Ssample_file pylevali "sample_file"
    25     34   
    26     35       Ssample_file sprintf "samples/bass/%.2f.wav", p5
    27     36       asig diskin2 Ssample_file, 1
    28         -    outs asig
           37  +    outs asig,asig
    29     38   endin
    30     39   
    31     40   instr 4
    32     41       aFMinst foscili p4, cpspch(p5), p6, p7, p8, p9
    33     42   endin
    34     43   
    35         -instr 5
    36         -    Ssample_file sprintf "samples/bass/%.2f.wav", p5
    37         -    asig diskin2 Ssample_file, 1
    38         -    outs asig
           44  +;instr 5
           45  +;    Ssample_file sprintf "samples/violin/%.2f.wav", p5
           46  +;    asig mp3in Ssample_file, 1
           47  +;    outs asig,asig
           48  +;endin
           49  +
           50  +instr 6
           51  +    mididefault 60, p3
           52  +    midinoteonkey p4, p5
           53  +    inum init p4
           54  +    ivel init p5
           55  +    ivel init ivel/127
           56  +    kamp linsegr 1, 1, 1, .1, 0
           57  +    kamp = kamp/1000
           58  +    kfreq init 1
           59  +    a1,a2 sfplay3 ivel, inum, kamp*ivel, kfreq, 0
           60  +    outs a1,a2
    39     61   endin
           62  +
           63  +;instr 7
           64  +;
           65  +;endin