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 
 Forum index » DIY Hardware and Software » ChucK programming language
preloading samples
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
cheesymoo



Joined: Mar 29, 2013
Posts: 1
Location: yeah

PostPosted: Fri Mar 29, 2013 4:56 pm    Post subject: preloading samples Reply with quote  Mark this post and the followings unread

Greetings everyone.

I am using SndBuf to playback samples and would like to be able to read the samples in without having them playback immediately.
I have been unsuccessful in implementing this. This is problematic because the loading of the sample causes a noticeable stutter in the audio of other shreds while the sample loads.

It seems like it should be simple to load in all of the samples I want and be able to play them back on command without having this stutter/lag.

Does this make sense?

Any thoughts on solutions?

Thanks for your time.
Back to top
View user's profile Send private message
pizzas



Joined: Feb 05, 2013
Posts: 4
Location: japan

PostPosted: Sat Mar 30, 2013 6:20 pm    Post subject: Reply with quote  Mark this post and the followings unread

what's up cheesymoo

to keep samples from playing upon loading, i have my sndbuf connected to an ADSR envelope. then, i tell the envelope keyOff.

Code:
SndBuf b;
ADSR e;

b => e => dac;

e.keyOff();

"provolone.wav" => b.read;

1::second => now;


e.keyOn() will trigger the sound.

i'm not sure what you mean about the stutter though -- let me know if the above helps with that too.
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
mps board

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