Options (Affects News & Product results only):

 OS: Any Format: Any Include: ProductsDevelopersNewsForumsVideos
Quick Search KVR

"Quick Search" KVR Audio's Product Database, News Items, Developer Listings, Forum Topics and videos here. For advanced Product Database searching please use the full product search. For the forum you can use the phpBB forum search.

To utilize the power of Google you can use the integrated Google Site Search.

Products 0

Developers 0

News 0

Forum 0

Videos 0

Search
AnnihilationRob
KVRist
 Posted: Mon Oct 28, 2013 9:53 pm reply with quote
Im converting MBT time to samples, and my result is a little different from what i'm seeing in Sonar X2.

My project is sampled at 44.1k and is in 4/4 time.
According to Sonar, the audio is 7229088 samples long and ends exactly at MBT 95:01:000
There are two tempos. 122 starting at MBT 01:01:000, and 140 and starting at 12:01:000.

If I'm correct the math should be:

First tempo segment: (60 * 44100) / (122 / 4) = 86754.09 samples per measure
86754.09 * 11 = 954295.08 samples in the 11 measures at 122

Second tempo segment: (60 * 44100) / (140 / 4) = 75600 samples per measure
75600 * 83 = 6274800 samples in the 83 measures at 140

Add them together for the total samples: 954295.08 + 6274800 = 7229095.08

Why is this off by about 7 samples? Its not significant here, but it has me worried I'm doing something wrong.
^ Joined: 02 Jul 2013  Member: #307959  Location: Colorado
FLWrd
KVRist
 Posted: Tue Oct 29, 2013 12:36 am reply with quote
It might be that Sonar rounds it to multiples of some buffer size. 7229088 is divisible by 32...
^ Joined: 18 May 2010  Member: #232085
BertKoor
KVRAF
 Posted: Tue Oct 29, 2013 12:53 am reply with quote
Try to do the reverse: calculate the last MBT position from the audio length.

With 140 BPM and sample rate of 44.1kHz, there's 18.900 samples per beat. With 960 pulses per beat, one tick equals about 20 samples. So being 7 samples off is about right. That there defines the available precision. So the MBT format will never be sample-accurate.
----
We are the KVR collective. Resistance is futile. You will be assimilated.
My MusicCalc is back online!!
^ Joined: 08 Mar 2005  Member: #60794  Location: Utrecht, Holland
 Page 1 of 1 Printable version KVR Forum Index » DSP and Plug-in Development All times are GMT - 8 Hours
Display posts from previous:
 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forum Quick Forum Jump The Main Forums----------------KVR Audio Readers' Choice AwardsGetting Started (AKA What is the best...?)InstrumentsEffectsHosts (Sequencers, DAWs, Audio Editors, etc.)Mobile Apps and HardwareSamples, Sampling and Sample LibrariesHardware (Instruments and Effects)Modular SynthesisSound DesignProduction TechniquesMusic TheoryComputer Setup and System ConfigurationDSP and Plug-in DevelopmentDIY: Build it and they will comeMusic CafeMarket Place (Buy / Sell / Special Offers)DC ChatEverything Else (Music related) Off Topic----------------Off TopicOff Topic ClassicsHyde Park Corner Official Company Forums----------------AbstractCatsSDaccSoneAcon DigitalAcousticsampleSAcousModulesAgitated StateAlgoMusicAMGAmple SoundAraldFXAriesCodeArts AcousticArturiaAudio ImpressionsAudio PoisonaudioD3CKAudjooAudioSpillageAudiorityBack In Time RecordsBest ServiceBig TickBlue Cat AudioBooTweak DesignsBornemarkCamel AudioCFA-SoundCitron InstrumentsCK Modules & VSTConcreteFXCWITECDangerous Bear UndergroundDevine MachineDISTRHODMAX audioDNR CollaborativeDrumdropse-instrumentseasytoolzElevaytaEmbertoneenergyXTePipesEVM Modules for SyntheditExpert SleepersFutucraftFXpansiong200kgGood LoopsH.E. AudioHG FortuneHollow SunHomegrown SoundsHumanoid Sound SystemsHuman Touch TechnologyIlya Efimov ProductionImage LineImpact SoundworksIndiginusInsert Piz HereInspire AudioJoBroMediakiloHeartsKirk Hunter StudiosKirnuKiss-BoxKong AudioKrakliKuassaKV331 AudioLeapfrog AudioLennarDigitalLes Productions ZvonLinPluglinuxDSPLiqubeLittle EndianLivelab.dkLoomerLVC-AudioM-RGTMaizesoftManytone MusicMeldaProductionMidi MobilesMinimal System InstrumentsMKDRMu TechnologiesmucoderMuon SoftwareMuse Research and DevelopmentMusicDevelopmentsMUTOOLSNine Volt AudioNucleus SoundLabNUSofting + DashSignatureOli Larkin PluginsOne Small ClueOrange Tree SamplesOverTone DSPpatchpoolpatchwerkzPhotosounderPlugInGuruPrecisionsoundPro-SoundsProdyonPsychic ModulationRaXnTraXRealitonerealsamplesResonance-SoundReveal SoundRob Papenrs-metSaltlineSample SquadSamplephonicsShurikensidsonic librariesSignaldustSKNoteSkytopiaSmart ElectronixSoHa Sound DesignSonicBirthSONICBYTESSoniccoutureSonic Reality / eSoundz.comSonigenSoulViaSound UGSoundemoteSoundironSpectralhead AudioSpirit Canyon AudioSunsine AudioSupersynthsStraightarrowStrayWorxStudio Unitsstw-audioSubatomic LabsSugar BytesSynthescienceSyntoneTeragon AudioThe Sound GuyTogu Audio LineTokyo Dawn LabsTopten SoftwareTracktionTweakbenchu-heUgoValhalla DSPVAZ SynthsVirharmonicVSTForxWavesfactoryWestgatesounds.netWhite Noise Audio SoftwareWolfgang PalmWusik.comWWAYMxoxosYuroun Sound DesignZynAddSubFX Site Stuff----------------Site StuffDeveloper Area DiscussionsMy KVR Beta