Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:58 08 Feb 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : When playing audio, do we have a pointer?

Author Message
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1024
Posted: 01:28am 04 Feb 2025
Copy link to clipboard 
Print this post

Like can we jump to any location?
Can we create a looper?
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4529
Posted: 06:06am 04 Feb 2025
Copy link to clipboard 
Print this post

Loop is simple, let the interrupt at end of song, restart play.

Volhout
PicomiteVGA PETSCII ROBOTS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7106
Posted: 08:35am 04 Feb 2025
Copy link to clipboard 
Print this post

I'm pretty certain that you can't jump to partway through a track, if that's what the question meant. Music files aren't ordinary data files.

If you are using a VS1053 you might be able to create a looper in a circular array of MIDI instructions.
Edited 2025-02-04 18:37 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1024
Posted: 08:54am 04 Feb 2025
Copy link to clipboard 
Print this post

Yeah, I was thinking along the lines of a backing-track player for solo gigs. I see that we have stop/start to pause/resume but sometimes you might wanna jump back and repeat a chorus, for example. I suppose I could make a supplemental recording and just trigger that if/when needed.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4529
Posted: 09:08am 04 Feb 2025
Copy link to clipboard 
Print this post

Phenix,

Honestly, there is a wealth on musical tools that do exactly that. I am not sure that shouldbe the playfield for a "mite".

Volhout
PicomiteVGA PETSCII ROBOTS
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1024
Posted: 09:47am 04 Feb 2025
Copy link to clipboard 
Print this post

  Volhout said  Phenix,

Honestly, there is a wealth on musical tools that do exactly that. I am not sure that shouldbe the playfield for a "mite".

Volhout


Oh yeah...I have many of these already, dedicated hardware and also apps for my Android tablet. I could even create something in a few hours, using RFO Basic on Android.

But I'm inspired by other PicoMite capabilities. One would think that everything of any useful purpose would already exist in the market....but it doesn't  

Solo performances are becoming more and more popular due to cost and floor-space savings but I have identified areas where a bit more automation would be welcome.

The backing tracks that I use; the instruments are all on separate tracks. I eliminate most of them because I feel like an idiot when I only have a guitar and a full orchestra comes blaring out of the speakers  

These tracks are eventually mixed-down to a single MP3 which is OK but the venue can have an influence on the sound. I would like to be able to set the levels of each instrument to suit the acoustics of the venue. A device has recently hit the market but it's super-expensive and lacks capabilities that my version would have.

Darned PicoMite is giving me too many ideas  
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7106
Posted: 11:00am 04 Feb 2025
Copy link to clipboard 
Print this post

I suspect the only way to do it is to have a big enough buffer to hold the entire track so that you have the option to loop sections. I can't see that happening on a Pico, but you might be able to do something on a CMM2.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4529
Posted: 11:13am 04 Feb 2025
Copy link to clipboard 
Print this post

Pico with PSRAM might have sufficient resources, but this kind of application requires all kinds or real-time behaviour that is not build in into MMBasic. And this is so far from the current implementation that I do not think it can be based on MMBasic.
An MP3 player, yes.
A midi player, yes.
But manipulation of audio data, looping, smooth transitions, starting and stopping, 16 bit audio, maybe even audio in....far off.

Volhout
PicomiteVGA PETSCII ROBOTS
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2025