electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks GalleryGallery 
 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
LiSa Voices Question
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [7 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Inventor



Joined: Oct 13, 2007
Posts: 1416
Location: Florida, USA
Audio files: 54

PostPosted: Sun Mar 23, 2008 11:40 pm    Post subject: LiSa Voices Question
Subject description: How do I record on different voices with LiSa?
Reply with quote  Mark this post and the followings unread

I am putting LiSa in Synth Lab with both MAUI user input control and analog voltage control. So far it works, but I can only use one voice. My record and playback shreds are as follows:

Code:
// shred for record button on lisa
function void lisa_record_adj () {
    while (true) {
        lisa_record => now;
        if (lisa_record.state ()) {
            lisa.recPos (0::second);
            lisa.record (1);
        } else {
            lisa.record (0);
        }
    }
}
spork ~ lisa_record_adj ();
// shred for play button on lisa
function void lisa_play_adj () {
    while (true) {
        lisa_play => now;
        if (lisa_play.state ()) {
            lisa.playPos (lisa_voice.value () $ int, 0::second);
            lisa.rampUp (lisa_voice.value () $ int, lisa_ramp_duration);
        } else {
            lisa.rampDown (lisa_voice.value () $ int, lisa_ramp_duration);
        }
    }
}
spork ~ lisa_play_adj ();


No matter what slider setting i put on lisa_voice.value (), I get the recorded voice. In the documentation the record (int) function does not have a version that lets me specify the voice, and there seems to be no description of how to set it. I have called .duration (1::minute), .maxVoices (10), and .clear () in my initialization function, so things are set up right. Is there something having to do with getVoice () that sets the record voice? How do I get this to work?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frostburn



Joined: Dec 12, 2007
Posts: 251
Location: Finland
Audio files: 9

PostPosted: Mon Mar 24, 2008 1:18 am    Post subject: Reply with quote  Mark this post and the followings unread

One LiSa, one record buffer.
All the voices access the same buffer but can play (with) it at different rates.

_________________
To boldly go where no man has bothered to go before.
Back to top
View user's profile Send private message
Inventor



Joined: Oct 13, 2007
Posts: 1416
Location: Florida, USA
Audio files: 54

PostPosted: Mon Mar 24, 2008 2:12 am    Post subject: Reply with quote  Mark this post and the followings unread

Oh, that's too bad. But thanks, Frosty, you da man!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kijjaz



Joined: Sep 20, 2004
Posts: 491
Location: bangkok, thailand
Audio files: 2

PostPosted: Thu Mar 27, 2008 9:01 pm    Post subject: Reply with quote  Mark this post and the followings unread

now.. Frostburn's Digital Tape may be one wayout for this ^_^
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Frostburn



Joined: Dec 12, 2007
Posts: 251
Location: Finland
Audio files: 9

PostPosted: Fri Mar 28, 2008 8:28 am    Post subject: Reply with quote  Mark this post and the followings unread

kijjaz wrote:
now.. Frostburn's Digital Tape may be one wayout for this ^_^


LiSa - Live Sampler

Digital Tape - Recource Devourer

DigitalTape runs in real time but it does consume a lot of resources... Maybe after some testing it could be implemented in ChucK on the source level... It is after all just a fancy float buffer writer and an interpolating reader. We'll see.

_________________
To boldly go where no man has bothered to go before.
Back to top
View user's profile Send private message
Inventor



Joined: Oct 13, 2007
Posts: 1416
Location: Florida, USA
Audio files: 54

PostPosted: Fri Mar 28, 2008 8:41 am    Post subject: Reply with quote  Mark this post and the followings unread

Well, I don't mind putting a CPU hog in Synth Lab as long as I can shut it off when it's not in use. I'm gonna hold off on plugging DigitalTape into Synth Lab until I hear the examples and learn more about it, but it sure seems cool.

Perhaps the interpolation could be done with the Step and Envelope UGens somehow?

_________________
@(ºoº)@ ><}}}º> ~(^.^) <:3 )~
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Frostburn



Joined: Dec 12, 2007
Posts: 251
Location: Finland
Audio files: 9

PostPosted: Fri Mar 28, 2008 8:48 am    Post subject: Reply with quote  Mark this post and the followings unread

Inventor wrote:
Perhaps the interpolation could be done with the Step and Envelope UGens somehow?

Interpolation can be done with the chuckian UGens but Digital Tape exists beyond time. You can write and read as much as you like without stopping to pull some samples out of an Envelope.

_________________
To boldly go where no man has bothered to go before.
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 [7 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
Once You Know, You Newegg

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, 2004, 2005, 2006 and 2007 by electro-music.com