15 March 2024, 10:18 | #1 |
Registered User
Join Date: May 2017
Location: AmigaLand
Posts: 459
|
Vu metre with P61 Player
Hey,
I'd like to code a vu-metre, a simple one, I just need to detect when a note starts. As I'm almost zero at programming sound, is there a way to do it with P61 Player ? I guess yes, but how ? |
15 March 2024, 10:36 | #2 |
Registered User
Join Date: May 2017
Location: AmigaLand
Posts: 459
|
Ok, just checked in P61 source code, if I'm not mistaken I may use the four _visuctr adresses. If value = 0 then note is just triggered.
|
15 March 2024, 19:00 | #3 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,652
|
Yes, the example does exactly what you want - in the form of the intensity of color of a scanline per channel.
I don't remember exactly, but I think you can also read the instrument number when a channel triggers. A sample window for an oscilloscope is also prepared as an option - see documentation in the code for how to use it. This could be used for a more advanced VU-meter, by summing the amplitude of the bytes in the window. |
15 March 2024, 22:36 | #4 |
Registered User
Join Date: May 2017
Location: AmigaLand
Posts: 459
|
Nice, but any link to the example you're talking about ?
|
16 March 2024, 14:35 | #6 |
Registered User
Join Date: May 2017
Location: AmigaLand
Posts: 459
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
P61 sound pb | LeCaravage | Coders. Asm / Hardware | 6 | 05 March 2023 10:56 |
P61 with sfx play feature ? | Oriens | Coders. Asm / Hardware | 10 | 08 November 2021 21:31 |
P61 playing toooooo slow | HankVB | Coders. System | 1 | 14 September 2021 10:53 |
Deja Vu | Reynolds | Nostalgia & memories | 2 | 13 February 2010 12:21 |
extracting sampledata from P61 | yoki | Coders. General | 9 | 01 July 2009 01:04 |
|
|