electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
Live streaming at radio.electro-music.com

  host / artist show at your time
  mosc Live music with Twyndyllyngs - Bill Fox and Howard Moscovitz
Please visit the chat
 Forum index » DIY Hardware and Software » ChucK programming language
what is the best way to create a sound buffer
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
gersart



Joined: Jun 07, 2013
Posts: 3
Location: Calgary

PostPosted: Fri Jun 07, 2013 10:05 am    Post subject: what is the best way to create a sound buffer
Subject description: I want to fill a sound buffer before playing it.
Reply with quote  Mark this post and the followings unread

I am trying to use Chuck to create music from images. I have a processing sketch which is generating the signals, sent as a freq/gain pair using OSC.

I would like to collect each 'string' of these numbers (they are not all the same length) and create audio with them.

I have currently been sending them directly to a SinOsc but the sound I am getting is inconsistent and, um... yucky.

I understand that a typical microphone input is done using ~adc, and that one can do some pretty fantastic things with the sound buffer. This is similar to how I wanted to do this signification, but the information is from what Processing generates, not a microphone.

I cannot find any information on how to fill a sound buffer with my own information. COuld someone please direct me to how this might be done. I suspect my google-fu is not up to par for setting this up with my limited knowledge of ChucK.
Back to top
View user's profile Send private message
jbucks



Joined: Jul 30, 2011
Posts: 6
Location: Berlin

PostPosted: Mon Feb 24, 2014 10:00 am    Post subject: Reply with quote  Mark this post and the followings unread

OK, this is probably far too late to be of help, Very Happy but it sounds like you be after LiSa - which is a live sampling uGen built into ChucK. You can then transfer from LiSa to SndBuf.

Do a Find on LiSa here:
http://chuck.cs.princeton.edu/doc/program/ugen_full.html

For the basics, see here:
http://dtrueman.mycpanel.princeton.edu/LiSa/LiSa_tutorial.html

And finally, have a look at the LiSa/SndBuf examples here:
http://wiki.cs.princeton.edu/forums.html/LiSa_examples
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use