Jump to content

everitmatt

Members
  • Content count

    2
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

1 Neutral

About everitmatt

  • Rank
    Peon

Personal Information

  • Name
    Matt
  • Location
    New Zealand
  1. Hi all, I have been using the Pipe In chop and recording it with the Record Chop. I am now trying to save the data as a '.bclip' by right clicking the record chop then, save data channels. I get to choose the location, name and type. But when I click accept is says 'save failed: unknown reason'. I have tried all the different formats and saving it from chops further down the line. Also switching on and off the export flag. Has anyone had a similar problem? Is it a licensing thing? Any help would be appreciated. Thanks.
  2. pipe in / fifo file

    I have been looking into the Pipe In chop a bit and found the above example really good and managed to get it working with Python over sockets. Right at the top there was a mention of using Processing to communicate with the Pipe In. After some wrangling I got it working, have a look at the code below if your interested. int channels = 6; double[] samples = {3.4,2.2,1.2,2.3,4.2,2.4}; char r = 170; int nul = 0; void setup() { size(600, 600); // Starts a myServer on port 5204 myServer = new Server(this, 5204); frameRate(5); sendReset(); } void draw() { val = (val + 1) % 255; background(val); sendSetup(cmdType); sendSetup(channels); sendSamples(samples); samples[0] = (double)mouseX/100; samples[1] = (double)mouseY/100; } void sendReset() { myServer.write(r); myServer.write(nul); myServer.write(r); myServer.write(nul); myServer.write(r); myServer.write(nul); myServer.write(r); myServer.write(nul); } void sendSetup(int d){ myServer.write(0); myServer.write(0); myServer.write(0); myServer.write(0); myServer.write(0); myServer.write(0); myServer.write(0); myServer.write(d); } void sendSamples(double[] sample){ for(int i = 0; i < sample.length; i++){ double s = sample[i]; long lng = Double.doubleToLongBits(s); for(int j = 0; j < 8; j++){ myServer.write((byte)((lng >> ((7 - j) * 8)) & 0xff)); } } }
×