Using Alt midi controllors in the Orch & Sco

To whom it may concern,

I need help - step by step - about adding alt midi controllors into a
cSound Orch. & Score. Also, I'm using a Wii Nutchuck to create
addional sound to the cSound project. I'm receiving signal from the
Wii but, the Osc and cSound don't talk to each other to purduce the sound.

Can anyone please assist me with this issue?

Cheers - Gregg Thompson -

More info?

Hi Gregg,
You seem to have a fairly unique project there, so I suspect people may need some more details before being able to help you.

For a start, how are you reading the Numchuk? [I think that's the correct spelling (:-), from at least 5 variants I see in a web search; Wikipedia mostly settles on that anyway...] I gather it can be connected to a PC without a Wii, but I have no idea what any software you use with it might produce. What data are you getting/expecting?

You mention "Osc". Is that "Open Sound Control", or something else? I've no experience with Csound's OSC opcodes, so I probably can't help you there.

OTOH, I've done quite a bit with MIDI feeding Csound, so I might have some tips in that area. (I assume you're probably on Windows, which I don't use either, but there's likely some common ground!)

Alt Midi controllors

Hi Pete,
Thanx for the reply. I'll try to be specfic - First I'm using a Mac - Osc is a OSCUlator. I'm reading wii signals from the Nunchuck. The way wiinote (nunchuck) & osc are work is talk or sync with cSound, to preduce a sound.

Below is a the data/parameters that is to be installed/inputted into a orchestra & score in cSound. But not sure how these should be installed to work correctly.

If you need extra info visit - http://www.cSounds.com

Hopefully from this info you can assist me.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Alternate Controllers
;; Csound MIDI Instrument #1
;; by Colman O'Reilly
;; colman@colmanoreilly.com
;;
;; This instrument was designed to be controlled with the WiiMote
;; and/or a USB Gaming Controller through JunXion and OSCulator.
;;
;; Controller Reference: Osculator Action:
;; Midi Channel 3 = Panning = WMote Roll
;; Midi Channel 2 = Volume = WMote Pitch
;; Midi Channel 4 = Reverb = Nun Pitch
;; Midi Channel 5 = Delay Volume = NJoy X
;; Midi Channel 6 = FM Index = N/A
;; Midi Channel 7 = FM Car = Nun Roll
;; Midi Channel 8 = FM Mod = NJoy Y
;;
;;
;; Note: Many MIDI Values are multiplied by 0.00787401575.
;; This is equal to 1/127 and results in MIDI control
;; values from 0 to 1.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

sr = 44100
kr = 4410
ksmps = 10
nchnls = 2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
0dbfs = 1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;; Midi Init Vol Pan Rvb Delay Vol FM Index FM Car FM Mod
ctrlinit 1, 2,48, 3,58, 4,28, 5, 120, 6, 1, 7, 1, 8, 1

garvbL init 0
garvbR init 0
gadelL init 0
gadelR init 0

turnon 199
turnon 299

instr 1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; MIDI Assignments
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
kpan midic7 3, 0, 127 ;; Panning
kp2 = kpan*0.00787401575 ;;;;;;;;;;;;;;;;;
kvol midic7 2, 0, 127 ;; Volume
kv2 = kvol*0.00787401575 ;;;;;;;;;;;;;;;;;
krvb midic7 4, 0, 127 ;; Reverb
krv2 = krvb*0.00787401575 ;;;;;;;;;;;;;;;;;
kdel midic7 5, 0, 127 ;; Delay
kde2 = kdel*0.00787401575 ;;;;;;;;;;;;;;;;;
kfmi midic7 6, 0, 127 ;; FM Index
kfmc midic7 7, 0, 127 ;; FM Car
kfmc2 = kfmc*0.00787401575 ;;
kfmm midic7 8, 0, 127 ;; FM Mod
kfmm2 = kfmm*0.00787401575 ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ifrq cpsmidi
asaw oscili kv2*.5, ifrq, 2
afm foscil kv2*.4, ifrq, kfmc, kfmm, i(kfmi+1), 1
aoutL = asaw*kp2
aoutR = afm*(1-kp2)
outs aoutL, aoutR
garvbL = garvbL+(aoutL*krv2) ;; Reverb Out L
garvbR = garvbR+(aoutR*krv2) ;; Reverb Out R
gadelL = gadelL+(aoutL*kde2) ;; Delay Out L
gadelR = gadelR+(aoutR*kde2) ;; Delay Out R
endin

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Reverb
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
instr 199
arvbL, arvbR reverbsc garvbL, garvbR, .99, 12000, sr, 0.5, 1
outs arvbL, arvbR
garvbL = 0
garvbR = 0
endin

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Delay
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

instr 299
itime = 220
adL1 vdelay gadelL, itime, itime+10
adR1 vdelay gadelR, itime, itime+10

adL2 vdelay gadelL*.5, itime+220, itime+222
adR2 vdelay gadelR*.5, itime+220, itime+222

adL3 vdelay gadelL*.25, itime+441, itime+443
adR3 vdelay gadelR*.25, itime+441, itime+443

adL4 vdelay gadelL*.125, itime+662, itime+665
adR4 vdelay gadelR*.125, itime+662, itime+665

adL5 vdelay gadelL*.0625, itime+883, itime+884
adR5 vdelay gadelR*.0625, itime+883, itime+884

amixL = adL1+adL2+adL3+adL4+adL5
amixR = adR1+adR2+adR3+adR4+adR5
outs amixL, amixR
gadelL = 0
gadelR = 0
endin

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 136 BPM Drumloop "Swang Hause" by Bt
;; -uncomment in Score to turn on
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

instr 2
a1, a2 diskin2 "SwangHause.aif", 1, 0, 1
outs a1, a2
endin

f1 0 4096 10 1
f2 0 4096 7 1 4410 -1

f0 600
;i2 0 600

Not sure how much help I'll be

Thanks for the amplification; I now have a clearer idea of what you're doing. Unfortunately, though, I don't own a Mac either, so all I can do is some vague hand waving... (:-/) Maybe the hands will wave vaguely in the right direction, so here goes.

I looked at the OSCulator, and Colman's original package, so I have some idea of how the connection is to be made. I assume from your original comments that you are seeing signals from the Nunchuk in the OSCulator's window, so that part should be working. One of Colman's files is an 'oscd', which I suppose is a config file for the OSCulator. Have you used that?

The OSCulator has a (virtual) MIDI output port "OSCulator Out", which you will need to connect to from Csound. If you run Csound from the command line (which is my preferred method, scorning 'front ends'...(:-)) you will probably need an option something like '-M "OSCulator Out", but the details will depend on how the Mac handles virtual ports. If you're using MacCsound or something, it should have some way of specifying the input MIDI port. If all else fails, look into the 'MIDI Patchbay" software available; the OSCulator manual on its site references some.

Colman's csd file itself is pretty vanilla -- except that for some odd reason he doesn't use standard Controller numbers [and he calls them "Channels" which is entirely confusing!!]. (Don't know about the 'bsbpanel' stuff at the end, but it just seems to provide a screen slider for one of the controllers.) I assume you know how to run csd files in Csound.

Hope that's somewhat useful. For anything more detailed you'll have to find a Mac user. Have you tried emailing Colman himself?

z pack ed pills generic viagra cialis online cheap generic viagra Canadian pharmacy viagra Canadian pharmacy generic cialis staxyn z-pack zpack buy zithromax buy viagra uk z-pak viagra uk cialis uk z pak viagra online zpak kamagra uk avanafil pharmacy uk ed drugs