English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 15 March 2024, 10:18   #1
LeCaravage
Registered User
 
LeCaravage's Avatar
 
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 ?
LeCaravage is offline  
Old 15 March 2024, 10:36   #2
LeCaravage
Registered User
 
LeCaravage's Avatar
 
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.
LeCaravage is offline  
Old 15 March 2024, 19:00   #3
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,604
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.
Photon is offline  
Old 15 March 2024, 22:36   #4
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 459
Nice, but any link to the example you're talking about ?
LeCaravage is offline  
Old 16 March 2024, 12:18   #5
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,604
It's in the P6112.lha archive and is called P6112-Example.S.
Photon is offline  
Old 16 March 2024, 14:35   #6
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 459
LeCaravage is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 15:48.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07081 seconds with 13 queries