Hello everyone,
I'm posting to see if someone can help me with a problem. I'm new to C Sound. I've been sent score, orc and data files for C Sound by a collaborator. I installed MacCSound and all the relevant supporting stuff, loaded the score and orc files and tried to render, but am getting an error message relating to an ftload command in the orc file. This command should load data from a table in a data file, but it says 'unable to load file'. The file is located in the same directory as the score and orc files, and I have tried saving it both as binary and as text (changing the ftload code accordingly) to no avail. The text file opens fine in a text editor, so it doesn't seem to be a problem with the file itself.
Can anyone advise me as to why MacCSound can't load this file? My collaborator says that the orc, score and data files all work fine together on his machine (under Windows).
Thanks,
Michael



ftload_and_ftsave
hello,
this example ... maybe you can help (from Csound_Manual):
e
;======================================
; Initialize the global variables.
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1
; Table #1, make a sine wave using the GEN10 routine.
gitmp1 ftgen 1, 0, 32768, 10, 1
; Table #2, create an empty table.
gitmp2 ftgen 2, 0, 32768, 7, 0, 32768, 0
; Instrument #1 - a basic oscillator.
instr 1
kamp = 20000
kcps = 440
; Use Table #1.
ifn = 1
a1 oscil kamp, kcps, ifn
out a1
endin
; Instrument #2 - Load Table #1 into Table #2.
instr 2
; Save Table #1 to a file called "table1.ftsave".
ftsave "/Users/enrico/Desktop/table1.ftsave", 0, 1
; Load the "table1.ftsave" file into Table #2.
ftload "/Users/enrico/Desktop/table1.ftsave", 0, 2
kamp = 20000
kcps = 440
; Use Table #2, it should contain Table #1's sine wave now.
ifn = 2
a1 oscil kamp, kcps, ifn
out a1
endin
f0 99999
; Play Instrument #1 for 1 second.
i 1 0 1
; Play Instrument #2 for 1 second.
i 2 2 1
e
Version: 3
Render: Real
Ask: Yes
Functions: Window
Listing: Window
WindowBounds: 0 44 1440 960
CurrentView: orc
IOViewEdit: Off
Options: -b512 -s -m167 -iadc
ioView nobackground {65535, 65535, 65535}