Questions tagged [chuck]

ChucK is a strongly timed music programming language with deterministic multithreading.

ChucK can be used to compose, analyse or modify music. It is based on two central ingredients:

  • The heavily overloaded ChucK operator =>
  • Timed execution of commands, precise to the sample (typically 1/48000 second)

The ChucK operator allows for fast, intuitive development, for great flexibility and for loads of fun while programming: you just "chuck" your program together.

The precise timing allows for deterministic, safe "multishredding" (threads in ChucK are called "shreds") where no race conditions, aliasing problems or deadlocks arise.

ChucK is free and open-source software and is hosted on GitHub. The Mini Audicle IDE is a ChucK-ready IDE.

The main documentation is found at http://chuck.cs.princeton.edu/doc/, and the community-driven wiki is found at http://wiki.cs.princeton.edu/index.php/ChucK.

22 questions
6
votes
2 answers

Running an audio synthesis/analysis language on an embedded device

What is the experience running programs written in an audio synthesis/analysis language such as ChucK, Pure Data, Csound, Supercollider, etc. in an embedded device such as an Arduino Mega, Beagle Board or a custom board with a microprocessor or DSP…
Rafael Vega
  • 4,575
  • 4
  • 32
  • 50
6
votes
1 answer

Reading ints from a file in Chuck

I have this ChucK code: "examples/vento.txt" => string filename; FileIO fio; // open a file fio.open(filename, FileIO.READ); // ensure it's ok if(!fio.good()) { cherr <= "can't open file: " <= filename <= " for reading..." <= IO.newline(); …
patrick
  • 6,533
  • 7
  • 45
  • 66
6
votes
2 answers

ChucK Audio Input/Output Error in Ubuntu

I installed ChucK in my Ubuntu 12.0.4 VirtualBox. When I started the miniAudicle Virtual Machine, I got a pop up error message "The Virtual Machine appears to be hanging.......Abort the current shred? Cancel or Abort button" I seem can not click…
hangee
  • 719
  • 2
  • 9
  • 12
6
votes
4 answers

Synthesis of general programming language (Python) with tailored language (PureData/MaxMSP/ChucK)

I am learning Python because it appeals to me as a mathematician but also has many useful libraries for scientific computing, image processing, web apps, etc etc. It is frustrating to me that for certain of my interests (eletronic music or…
Marco
  • 245
  • 3
  • 6
3
votes
1 answer

OSC messages from a python-osc client are not picked up by ChucK server

I'm trying to set up communication between chuck and python via the OSC (Open Sound Control) protocol. On the python side we're using the python-osc library and chuck natively supports the OSC protocol. It appears that the messages we send from the…
chtenb
  • 14,924
  • 14
  • 78
  • 116
2
votes
2 answers

Max value of int in ChucK

What is the maximum value of an int in ChucK? Is there a symbolic constant for it?
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
2
votes
1 answer

Any string manipulation libraries for ChucK?

Can anyone point to string manipulation libraries for string in ChucK? I can hardly find anything concerning strings.
g.k
  • 35
  • 9
2
votes
3 answers

How to make a standalone program in ChucK audio programming language?

How do I make a standalone executable application (desktop, on server or mobile apps) in Chuck?
2
votes
1 answer

Does the ChucK language support SoundFonts?

I'm starting program that will work with music files, mostly MIDI. I heard about the ChucK programming language, and even found a free course about it, and I think it fits my needs. I will have to use SoundFonts to customize and enhance the MIDI…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
2
votes
1 answer

Detecting when ChucK child shred has finished

Is it possible to determine when a ChucK child shred has finished executing if you have a reference to the child shred? For example, in this code: // define function go() fun void go() { // insert code } // spork another, store reference to…
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
2
votes
2 answers

Linking Node Chat server with ChucK for sound

I currently attend CalArts as a Music Technology major. I've currently thought up an idea that I'd like to take a stab at, though it's become a bit more complex as I've gotten into it. I know there are easier ways to do this, but I want to do this…
Sam Rose
  • 21
  • 4
1
vote
0 answers

Add low frequency amplitude modulation to noise

I am trying to reproduce a SoX script using ChucK which creates brown noise with a slight oscillation (tremolo). The SoX script is: set -u set -e minutes=${1:-'59'} repeats=$(( minutes - 1…
Lorem Ipsum
  • 4,020
  • 4
  • 41
  • 67
1
vote
1 answer

ChucK - storing id values of sporked shreds

A little bit of a beginner so bear with me. I was writing a bit of code to experiment with shred sporking and removing, but encountered a problem. Here is a portion of my code: while(hid.recv(msg)) //Hid hid is above { if(msg.isButtonDown())…
Kevin Kim
  • 11
  • 3
1
vote
1 answer

Integrating Processing with Chuck with OSC

In processing I made a button "Play Amazing Notes" to send a signal to chuck(for playing notes) with OSC(open sound control),but when I run processing script it shows these error messages. ControlP5 2.2.6 infos, comments, questions at…
Probe
  • 11
  • 6
1
vote
1 answer

ChucK Joystick Control

I am trying to receive input from joystick. After input has been received sound should be generated. This works, but it responds to both push and release of buttons of the joystick. How do I get it to respond to only pushes and not releases. More…
BattleDrum
  • 798
  • 7
  • 13
1
2