Csound Csound-dev Csound-tekno Search About

[Cs-dev] FLTK compling error

Date2014-12-16 22:58
Fromfauveboy
Subject[Cs-dev] FLTK compling error
Hi,

I've been away from csound for a little longer than I intended. I've
recently refreshed my OSX, reinstalled csound6 and FLTK tools (that I call
upon in the following code). I've gone to run my previous code i was working
on before but no success for some reason. I can't work out why? So I wanted
to share the code with a couple of images to see if anyone can perhaps shed
some light.

Thank you!

_________________________________________________________________________



-odac -dm0




sr = 88200
ksmps = 100
nchnls = 1
0dbfs = 1

	
FLpanel	"", 1500,    600,    0,  0




gkosc1,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,  5, 5, -1
gkosc2,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25, 80, 5, -1
gkosc3,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,155, 5, -1
gkosc4,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,230, 5, -1
gkosc5,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,305, 5, -1
gkosc6,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,380, 5, -1
gkosc7,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,455, 5, -1
gkosc8,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,530, 5, -1
gkosc9,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,605, 5, -1
gkosc10,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,680, 5, -1
gkosc11,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,755, 5, -1
gkosc12,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,830, 5, -1
gkosc13,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,905, 5, -1
gkosc14,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,980, 5, -1
gkosc15,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,1055, 5, -1
gkosc16,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,1130, 5, -1
gkosc17,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,5, 30, 40
gkosc18,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,80, 30, 40
gkosc19,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,155, 30, 40
gkosc20,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,230, 30, 40
gkosc21,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,305, 30, 40 
gkosc22,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,380, 30, 40 
gkosc23,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,455, 30, 40 
gkosc24,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,530, 30, 40
gkosc25,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,605, 30, 40
gkosc26,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,680, 30, 40
gkosc27,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,755, 30, 40
gkosc28,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,830, 30, 40
gkosc29,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,905, 30, 40
gkosc30,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,980, 30, 40
gkosc31,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,1055, 30, 40
gkosc32,ih	FLbutton	"OSC1", 1, 0, 2, 70, 25,1130, 30, 40

gksq1,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,  5, 55, -1
gksq2,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25, 80, 55, -1
gksq3,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,155, 55, -1
gksq4,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,230, 55, -1
gksq5,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,305, 55, -1
gksq6,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,380, 55, -1
gksq7,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,455, 55, -1
gksq8,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,530, 55, -1
gksq9,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,605, 55, -1
gksq10,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,680, 55, -1
gksq11,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,755, 55, -1
gksq12,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,830, 55, -1
gksq13,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,905, 55, -1
gksq14,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,980, 55, -1
gksq15,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,1055, 55, -1
gksq16,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,1130, 55, -1
gksq17,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,5, 80, 40
gksq18,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,80, 80, 40
gksq19,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,155, 80, 40
gksq20,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,230, 80, 40
gksq21,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,305, 80, 40 
gksq22,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,380, 80, 40 
gksq23,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,455, 80, 40 
gksq24,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,530, 80, 40
gksq25,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,605, 80, 40
gksq26,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,680, 80, 40
gksq27,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,755, 80, 40
gksq28,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,830, 80, 40
gksq29,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,905, 80, 40
gksq30,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,980, 80, 40
gksq31,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,1055, 80, 40
gksq32,ih	FLbutton	"OSC2", 1, 0, 2, 70, 25,1130, 80, 40 


gk1lfoamp,ih	FLbutton	"1lfoamp.1", 0.5, 0, 2, 70, 25, 5, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.2", 0.1,  0, 2, 70, 25, 80, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.3", 0.15, 0, 2, 70, 25, 155, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.4", 0.2, 0, 2, 70, 25, 230, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.5", 0.25, 0, 2, 70, 25, 305, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.6", 0.3, 0, 2, 70, 25, 380, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.7", 0.35, 0, 2, 70, 25, 455, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.8", 0.4, 0, 2, 70, 25, 530, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.9", 0.45, 0, 2, 70, 25, 605, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.10", 0.5, 0, 2, 70, 25, 680, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.11", 0.55, 0, 2, 70, 25, 755, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.12", 0.6, 0, 2, 70, 25, 830, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.13", 0.65, 0, 2, 70, 25, 905, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.14", 0.7, 0, 2, 70, 25, 980, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.15", 0.8, 0, 2, 70, 25, 1055, 200, 81
gk1lfoamp,ih	FLbutton	"1lfoamp.16", 1, 0, 2, 70, 25, 1130, 200, 81

gkmodndx,ih	FLbutton	"modndx.1",1 , 0, 2, 70, 25, 5, 225, 81
gkmodndx,ih	FLbutton	"modndx.2",10 , 0, 2, 70, 25, 80, 225, 81
gkmodndx,ih	FLbutton	"modndx.3",50 , 0, 2, 70, 25, 155, 225, 81
gkmodndx,ih	FLbutton	"modndx.4",100 , 0, 2, 70, 25, 230, 225, 81
gkmodndx,ih	FLbutton	"modndx.5",500 , 0, 2, 70, 25, 305, 225, 81
gkmodndx,ih	FLbutton	"modndx.6",1000 , 0, 2, 70, 25, 380, 225, 81
gkmodndx,ih	FLbutton	"modndx.7",5000 , 0, 2, 70, 25, 455, 225, 81
gkmodndx,ih	FLbutton	"modndx.8",10000 , 0, 2, 70, 25, 530, 225, 81
gkmodndx,ih	FLbutton	"modndx.9",0.5 , 0, 2, 70, 25, 605, 225, 81
gkmodndx,ih	FLbutton	"modndx.10",0.55 , 0, 2, 70, 25, 680, 225, 81
gkmodndx,ih	FLbutton	"modndx.11",0.6 , 0, 2, 70, 25, 755, 225, 81
gkmodndx,ih	FLbutton	"modndx.12",0.65 , 0, 2, 70, 25, 830, 225, 81
gkmodndx,ih	FLbutton	"modndx.13",0.7 , 0, 2, 70, 25, 905, 225, 81
gkmodndx,ih	FLbutton	"modndx.14",0.75 , 0, 2, 70, 25, 980, 225, 81
gkmodndx,ih	FLbutton	"modndx.15",0.8 , 0, 2, 70, 25, 1055, 225, 81
gkmodndx,ih	FLbutton	"modndx.16",1 , 0, 2, 70, 25, 1130, 225, 81

gkcarfrq,ih	FLbutton	"carfrq.1",0.5 , 0, 2, 70, 25,5 , 105, 81
gkcarfrq,ih	FLbutton	"carfrq.2",0.25 , 0, 2, 70, 25,80 , 105, 81
gkcarfrq,ih	FLbutton	"carfrq.3",1.5 , 0, 2, 70, 25,155 , 105, 81
gkcarfrq,ih	FLbutton	"carfrq.4",2 , 0, 2, 70, 25,230 , 105, 81
gkcarfrq,ih	FLbutton	"carfrq.5",2.5 , 0, 2, 70, 25,305 , 105, 81
gkcarfrq,ih	FLbutton	"carfrq.6",3 , 0, 2, 70, 25,380, 105, 81
gkcarfrq,ih	FLbutton	"carfrq.7",5 , 0, 2, 70, 25,455, 105, 81
gkcarfrq,ih	FLbutton	"carfrq.8",7 , 0, 2, 70, 25,530, 105, 81
gkmodfrq,ih	FLbutton	"modfrq.1",0.5 , 0, 2, 70, 25,605, 105, 81
gkmodfrq,ih	FLbutton	"modfrq.2",1 , 0, 2, 70, 25,680, 105, 81
gkmodfrq,ih	FLbutton	"modfrq.3",2 , 0, 2, 70, 25,755, 105, 81
gkmodfrq,ih	FLbutton	"modfrq.4",3 , 0, 2, 70, 25,830, 105, 81
gkmodfrq,ih	FLbutton	"modfrq.5",4 , 0, 2, 70, 25,905, 105, 81
gkmodfrq,ih	FLbutton	"modfrq.6",5 , 0, 2, 70, 25,980, 105, 81
gkmodfrq,ih	FLbutton	"modfrq.7",6 , 0, 2, 70, 25,1055, 105, 81
gkmodfrq,ih	FLbutton	"modfrq.8",7 , 0, 2, 70, 25,1130, 105, 81

gklfoamp,ih	FLbutton	"lfoamp.1",0.1 , 0, 2, 70, 25,5 , 125, 81
gklfoamp,ih	FLbutton	"lfoamp.2",0.15 , 0, 2, 70, 25,80 , 125, 81
gklfoamp,ih	FLbutton	"lfoamp.3",0.2 , 0, 2, 70, 25,155, 125, 81
gklfoamp,ih	FLbutton	"lfoamp.4",0.25 , 0, 2, 70, 25,230, 125, 81
gklfoamp,ih	FLbutton	"lfoamp.5",0.3 , 0, 2, 70, 25,305, 125, 81
gklfoamp,ih	FLbutton	"lfoamp.6",0.35 , 0, 2, 70, 25,380, 125, 81
gklfoamp,ih	FLbutton	"lfoamp.7",0.4 , 0, 2, 70, 25,455, 125, 81
gklfoamp,ih	FLbutton	"lfoamp.8",0.45 , 0, 2, 70, 25,530, 125, 81
gklfoamp,ih	FLbutton	"lfoamp.9",0.5 , 0, 2, 70, 25,605, 125, 81
gklfoamp,ih	FLbutton	"lfoamp.10",0.55 , 0, 2, 70, 25,680, 125, 81
gklfoamp,ih	FLbutton	"lfoamp.11",0.6 , 0, 2, 70, 25,755, 125, 81
gklfoamp,ih	FLbutton	"lfoamp.12",0.65 , 0, 2, 70, 25,830, 125, 81
gklfoamp,ih	FLbutton	"lfoamp.13",0.7 , 0, 2, 70, 25,905, 125, 81
gklfoamp,ih	FLbutton	"lfoamp.14",0.75 , 0, 2, 70, 25,980, 125, 81
gklfoamp,ih	FLbutton	"lfoamp.15",0.8 , 0, 2, 70, 25,1055, 125, 81
gklfoamp,ih	FLbutton	"lfoamp.16",1 , 0, 2, 70, 25,1130, 125, 81

gklfofreq,ih	FLbutton	"lfofreq.1",2 , 0, 2, 70, 25, 5, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.2",3 , 0, 2, 70, 25, 80, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.3",4 , 0, 2, 70, 25, 155, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.4",5 , 0, 2, 70, 25, 230, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.5",6 , 0, 2, 70, 25, 305, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.6",7 , 0, 2, 70, 25, 380, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.7",8 , 0, 2, 70, 25, 455, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.8",9, 0, 2, 70, 25, 530, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.9",10 , 0, 2, 70, 25, 605, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.10",15 , 0, 2, 70, 25, 680, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.11",20 , 0, 2, 70, 25, 755, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.12",25 , 0, 2, 70, 25, 830, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.13",30 , 0, 2, 70, 25, 905, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.14",35 , 0, 2, 70, 25, 980, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.15",40, 0, 2, 70, 25, 1055, 150, 81
gklfofreq,ih	FLbutton	"lfofreq.16",50 , 0, 2, 70, 25, 1130, 150, 81

gk1lfofreq,ih	FLbutton	"lfofreq.16",0.5 , 0, 2, 70, 25, 5, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",1 , 0, 2, 70, 25, 80, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",2 , 0, 2, 70, 25, 155, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",3 , 0, 2, 70, 25, 230, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",4 , 0, 2, 70, 25, 305, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",5 , 0, 2, 70, 25, 380, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",6 , 0, 2, 70, 25, 455, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",7 , 0, 2, 70, 25, 530, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",8 , 0, 2, 70, 25, 605, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",9 , 0, 2, 70, 25, 680, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",10 , 0, 2, 70, 25, 755, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",15 , 0, 2, 70, 25, 830, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",1000 , 0, 2, 70, 25, 905, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",5000 , 0, 2, 70, 25, 980, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",7000 , 0, 2, 70, 25, 1055, 175, 81
gk1lfofreq,ih	FLbutton	"lfofreq.16",8000 , 0, 2, 70, 25, 1130, 175, 81


gkampM,ihampM   FLbutton        "Mas1", 0.0625, 0, 2, 70, 25, 5, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 0.125, 0, 2, 70, 25, 80, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 0.1875, 0, 2, 70, 25, 155, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 0.25, 0, 2, 70, 25, 230, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 0.3125, 0, 2, 70, 25, 305, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 0.375, 0, 2, 70, 25, 380, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 0.4375, 0, 2, 70, 25, 455, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 0.5, 0, 2, 70, 25, 530, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 0.5625, 0, 2, 70, 25, 605, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 0.625, 0, 2, 70, 25, 680, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 0.6875, 0, 2, 70, 25, 755, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 0.75, 0, 2, 70, 25, 830, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 0.8125, 0, 2, 70, 25, 905, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 0.875, 0, 2, 70, 25, 980, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 0.9375, 0, 2, 70, 25, 1055, 250, 81
gkampM,ihampM   FLbutton        "Mas1", 1, 0, 2, 70, 25, 1130, 250, 81


gkbeta,ih       FLbutton        "kbeta", -1, 1, 2, 70, 25, 5, 275, 81  
gkbeta,ih       FLbutton        "kbeta",  -0.875, 1, 2, 70, 25, 80, 275, 81 
gkbeta,ih       FLbutton        "kbeta", -0.75, 1, 2, 70, 25, 155, 275, 81  
gkbeta,ih       FLbutton        "kbeta", -0.625, 1, 2, 70, 25, 230, 275, 81  
gkbeta,ih       FLbutton        "kbeta", -0.5, 1, 2, 70, 25, 305, 275, 81  
gkbeta,ih       FLbutton        "kbeta", -0.375, 1, 2, 70, 25, 380, 275, 81  
gkbeta,ih       FLbutton        "kbeta", -0.25, 1, 2, 70, 25, 455, 275, 81  
gkbeta,ih       FLbutton        "kbeta", -0.125, 1, 2, 70, 25, 530, 275, 81  
gkbeta,ih       FLbutton        "kbeta0", 0, 1, 2, 70, 25, 605, 275,81  
gkbeta,ih       FLbutton        "kbeta", 0.125, 1, 2, 70, 25, 680, 275, 81  
gkbeta,ih       FLbutton        "kbeta", 0.25, 1, 2, 70, 25, 755, 275, 81  
gkbeta,ih       FLbutton        "kbeta", 0.375, 1, 2, 70, 25, 830, 275, 81  
gkbeta,ih       FLbutton        "kbeta", 0.5, 1, 2, 70, 25, 905, 275, 81  
gkbeta,ih       FLbutton        "kbeta", 0.625, 1, 2, 70, 25, 980, 275, 81  
gkbeta,ih       FLbutton        "kbeta", 0.75, 1, 2, 70, 25, 1055, 275, 81  
gkbeta,ih       FLbutton        "kbeta", 0.90, 1, 2, 70, 25, 1130, 275, 81  



gkampN,ihampN	FLslider 	"NoiseLevel", 0, 1, 0, 4, -1, 20, 100, 60,400
gkcenfrq,ih	FLslider 	"Centfreq", 0, 4000, 0, 4, -1, 20, 100, 100,400
gkbndwid,ih	FLslider 	"Bandwid", 0, 1000, 0, 4, -1, 20, 100, 150,400
gkfilkhp,ih	FLslider 	"filter", 0, 4000, 0, 4, -1, 20, 100, 200,400
gklowfilkhp,ih	FLslider 	"lowfilter", 1, 4000, 0, 4, -1, 20, 100, 250,400
gkfilkhp2,ih	FLslider 	"filter", 0, 4000, 0, 4, -1, 20, 100, 300,400
gklowfilkhp2,ih	FLslider 	"lowfilter", 0, 4000, 0, 4, -1, 20, 100, 350,400
gkpitch,ih	FLslider 	"pitchshift", 0, 144, 0, 4, -1, 20, 100, 400,400


FLpanel_end
FLrun

gisine	ftgen	0,0,16384,10,1

opcode freqShift, a, ak
  
	ain, kfreq	xin
	
	; Phase quadrature output derived from input signal.
	areal, aimag hilbert ain
	 
	; Sine table for quadrature oscillator.
	iSineTable ftgen	0, 0, 16384, 10, 1

	; Quadrature oscillator.
	asin oscili 1, kfreq, iSineTable
	acos oscili 1, kfreq, iSineTable, .25
	 
	; Use a trigonometric identity. 
	; See the references for further details.
	amod1 = areal * acos
	amod2 = aimag * asin
	
	; Both sum and difference frequencies can be 
	; output at once.
	; aupshift corresponds to the sum frequencies.
	aupshift = (amod1 + amod2) * 0.7
	; adownshift corresponds to the difference frequencies. 
	adownshift = (amod1 - amod2) * 0.7
	
	; Notice that the adding of the two together is
	; identical to the output of ring modulation.
	
	xout aupshift
endop

instr	1

#define	START_STOP_NOTE(COUNT'NOTE)
#

ktrig	changed	gkosc$COUNT			
 if ktrig==1 then				
  if gkosc$COUNT==1 then		 
   event	"i",2+($COUNT*0.001),0,-1,$NOTE	
  else							; otherwise (i.e. button value is zero therefore has been
turned off)...
   turnoff2	2+($COUNT*0.001),4,1			; ...turn instr 2 off. Note that mode '4'
directs turnoff2 to only turnoff the instrument with the matching fractional
part
  endif
 endif
#

$START_STOP_NOTE(1'50-0.32)
$START_STOP_NOTE(2'51-0.32)
$START_STOP_NOTE(3'52-0.32)
$START_STOP_NOTE(4'53-0.32)
$START_STOP_NOTE(5'54-0.32)
$START_STOP_NOTE(6'55-0.32)
$START_STOP_NOTE(7'56-0.32)
$START_STOP_NOTE(8'57-0.32)
$START_STOP_NOTE(9'58-0.32)
$START_STOP_NOTE(10'59-0.32)
$START_STOP_NOTE(11'60-0.32)
$START_STOP_NOTE(12'61-0.32)
$START_STOP_NOTE(13'62-0.32)
$START_STOP_NOTE(14'63-0.32)
$START_STOP_NOTE(15'64-0.32)
$START_STOP_NOTE(16'65-0.32)
$START_STOP_NOTE(17'66-0.32)
$START_STOP_NOTE(18'67-0.32)
$START_STOP_NOTE(19'68-0.32)
$START_STOP_NOTE(20'69-0.32)
$START_STOP_NOTE(21'70-0.32)
$START_STOP_NOTE(22'71-0.32)
$START_STOP_NOTE(23'72-0.32)
$START_STOP_NOTE(24'73-0.32)
$START_STOP_NOTE(25'74-0.32)
$START_STOP_NOTE(26'75-0.32)
$START_STOP_NOTE(27'76-0.32)
$START_STOP_NOTE(28'77-0.32)
$START_STOP_NOTE(29'79-0.32)
$START_STOP_NOTE(30'80-0.32)
$START_STOP_NOTE(31'81-0.32)
$START_STOP_NOTE(32'82-0.32)


endin

instr	2

 icount	=	frac(p1) * 1000	; derive 'COUNT' value for this instrument
 print	icount			; confirm derived value
 klfo	lfo	gk1lfoamp, gk1lfofreq, 0
 klfo	lfo	gklfoamp, gklfofreq, 0
 iamp = 0dbfs / 4  ; Peaks 12 dB below 0dbfs

 aenv2	linsegr	0,0.01,1,0.01,0

 a1 noise (1-gkampN), gkbeta
 a2	foscil	aenv2*(1-gkampM),cpsmidinn(p4), gkcarfrq, gkmodfrq, gkmodndx, 1

 afil	atone a2, gkfilkhp
 alowfil tone afil, gklowfilkhp
 ares reson a1, gkcenfrq,gkbndwid

 afil2	atone ares, gkfilkhp2
 alowfil2 tone afil2, gklowfilkhp2

 ashf freqShift (alowfil + alowfil2), gkpitch


 	outs	ashf  * (1-klfo)
endin

;************************************Synth2**************************************

instr	3

#define	START_STOP_NOTE(COUNT'NOTE)
#

ktrig	changed	gksq$COUNT			
 if ktrig==1 then				
  if gksq$COUNT==1 then		 
   event	"i",4+($COUNT*0.001),0,-1,$NOTE	
  else							; otherwise (i.e. button value is zero therefore has been
turned off)...
   turnoff2	4+($COUNT*0.001),4,1			; ...turn instr 2 off. Note that mode '4'
directs turnoff2 to only turnoff the instrument with the matching fractional
part
  endif
 endif
#

$START_STOP_NOTE(1'50-0.32)
$START_STOP_NOTE(2'51-0.32)
$START_STOP_NOTE(3'52-0.32)
$START_STOP_NOTE(4'53-0.32)
$START_STOP_NOTE(5'54-0.32)
$START_STOP_NOTE(6'55-0.32)
$START_STOP_NOTE(7'56-0.32)
$START_STOP_NOTE(8'57-0.32)
$START_STOP_NOTE(9'58-0.32)
$START_STOP_NOTE(10'59-0.32)
$START_STOP_NOTE(11'60-0.32)
$START_STOP_NOTE(12'61-0.32)
$START_STOP_NOTE(13'62-0.32)
$START_STOP_NOTE(14'63-0.32)
$START_STOP_NOTE(15'64-0.32)
$START_STOP_NOTE(16'65-0.32)
$START_STOP_NOTE(17'66-0.32)
$START_STOP_NOTE(18'67-0.32)
$START_STOP_NOTE(19'68-0.32)
$START_STOP_NOTE(20'69-0.32)
$START_STOP_NOTE(21'70-0.32)
$START_STOP_NOTE(22'71-0.32)
$START_STOP_NOTE(23'72-0.32)
$START_STOP_NOTE(24'73-0.32)
$START_STOP_NOTE(25'74-0.32)
$START_STOP_NOTE(26'75-0.32)
$START_STOP_NOTE(27'76-0.32)
$START_STOP_NOTE(28'77-0.32)
$START_STOP_NOTE(29'79-0.32)
$START_STOP_NOTE(30'80-0.32)
$START_STOP_NOTE(31'81-0.32)
$START_STOP_NOTE(32'82-0.32)


endin

instr	4
 icount	=	frac(p1) * 1000	; derive 'COUNT' value for this instrument
 print	icount	

 aenv2	linsegr	0,0.01,1,0.01,0

 a2	foscil	aenv2*(1-gkampM),cpsmidinn(p4), gkcarfrq, gkmodfrq, gkmodndx, 2

 	outs	a2

endin









  

f1 0 16384 10 1 
f2 0 16385 7 -1 16384 1

i1 0 100000
i3 0 100000





 
 





--
View this message in context: http://csound.1045644.n5.nabble.com/FLTK-compling-error-tp5739300.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-12-16 23:00
Fromfauveboy
SubjectRe: [Cs-dev] FLTK compling error
  
Was intending to upload this image to excuse me.



--
View this message in context: http://csound.1045644.n5.nabble.com/FLTK-compling-error-tp5739300p5739301.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net