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 Chez mosc - tonight, Twyndyllyngs live
Please visit the chat
 Forum index » Instruments and Equipment » Samplers
AU sampler that returns sample number?
Post new topic   Reply to topic
Page 1 of 1 [1 Post]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
brutusx



Joined: Apr 12, 2011
Posts: 8
Location: Canada

PostPosted: Wed Aug 31, 2011 7:13 pm    Post subject: AU sampler that returns sample number?
Subject description: phase, AU, sample number, sampler
Reply with quote  Mark this post and the followings unread

Hi,

I'm using an audio programming language that lets you access an apple Audio Unit (AU).

I want to do the following:

-A musical wave is looping and I want to know its phase

-I ask the Audio Unit to give me the current sample number

-I calculate the phase using this formula:
phase = sample_number/total_number_of_samples
which gives me a number between 0 and 1 (ie the phase)

-Then I use this phase information in my algorithm.

Anyone know an AU that gives up the sample number if asked?

Someone emailed me suggesting that OSX Lion ships with apple's own sample synth: AUSampler. He speculates that it might give the current sample number, but he wasn't sure.

Anyone know?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1 [1 Post]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » Instruments and Equipment » Samplers
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