Old 04-09-2008, 06:38 PM   #1
aldi
Human being with feelings
 
aldi's Avatar
 
Join Date: Jun 2006
Posts: 970
Default peakfile

hmm,

i just wanne hook on the peakfile building methode to change the way the peakfiles are looking. is there a way now to just register that, or do i have to do that by creating a sink too ?? please help as i'm a little lost

Code:
REAPER_PLUGIN_HINSTANCE g_hInst; // used for dialogs, if any

REAPER_PeakBuild_Interface *(*PeakBuild_Create)(PCM_source *src, const char *fn, int srate, int nch);

class OnsetPeakFiles:public REAPER_PeakBuild_Interface
{
public:
   OnsetPeakFiles()
   {
   }

   void ProcessSamples(double **samples, int len, int nch, int offs, int spread)
   {
   }

private:

};
__________________
REAPER is FANTASTIC

pending fr's: NONE ! :D

Last edited by aldi; 04-09-2008 at 11:36 PM.
aldi is offline   Reply With Quote
Old 04-09-2008, 11:31 PM   #2
aldi
Human being with feelings
 
aldi's Avatar
 
Join Date: Jun 2006
Posts: 970
Default

sorry, i edited again, hopefully someone will still take a look
__________________
REAPER is FANTASTIC

pending fr's: NONE ! :D
aldi is offline   Reply With Quote
Old 04-09-2008, 11:55 PM   #3
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

I believe that you have to implement the full PCM_source-thing from scratch (for all file formats you want) if you need customized peak graphics display for media items. I hope that is wrong, though...Of course you could maybe support only WAV etc...But yeah, now looking more carefully about your post, you say "hook" into the peak-building process. I don't think there is a way. Justin would know the best And you could always maybe request APIs for that...
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 04-10-2008, 06:17 AM   #4
aldi
Human being with feelings
 
aldi's Avatar
 
Join Date: Jun 2006
Posts: 970
Default

thx xenakios,

hopefully justin can give me an advise.

basicaly this is what i m trying to do:

when reaper builds a peakfile i just wan t to change the samples where this is based on, then rename the peakefile and let reaper rebuild the peaks without me changing anything. then, when the user pushes a shortcut i wanne switch between these two peakfiles.

hmm, maybe rebuilding the peaks without overwriting the originals when the user pushes the key would be more effective.
__________________
REAPER is FANTASTIC

pending fr's: NONE ! :D
aldi is offline   Reply With Quote
Old 04-10-2008, 08:22 AM   #5
Tallisman
Human being with feelings
 
Tallisman's Avatar
 
Join Date: Jan 2007
Location: in the middle of the icecube.
Posts: 7,403
Default

ok... now why?
Are you hoping to create a peakfile view that shows something different that what is currently displayed? Like that idea JBM used to throw around (which i thought was quite cool)?

do tell fro those of us who can't speak Code
.t
__________________
.t

_____________________________
http://jomei.bandcamp.com <--My Middle Son.

http://tallisman.bandcamp.com <--Me.

"Excuse me. Could you please point me in the direction of the self-help section?"
Tallisman is offline   Reply With Quote
Old 04-10-2008, 08:42 AM   #6
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Hehe, would totally kick ass if the item waveform could be totally custom drawn, heh heh! (I'm thinking about spectral displays and what not...)
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 04-10-2008, 10:06 AM   #7
Tallisman
Human being with feelings
 
Tallisman's Avatar
 
Join Date: Jan 2007
Location: in the middle of the icecube.
Posts: 7,403
Default

and that, dear X, is why i ask!





.t
__________________
.t

_____________________________
http://jomei.bandcamp.com <--My Middle Son.

http://tallisman.bandcamp.com <--Me.

"Excuse me. Could you please point me in the direction of the self-help section?"
Tallisman is offline   Reply With Quote
Old 04-10-2008, 05:17 PM   #8
aldi
Human being with feelings
 
aldi's Avatar
 
Join Date: Jun 2006
Posts: 970
Default

i ve made n allgorithm (spend weeks of researches) that detects the onsets even in complex polyphone material and i d like to see that as peakfiles if i wish just that these researches i did werent completely useless.
__________________
REAPER is FANTASTIC

pending fr's: NONE ! :D
aldi is offline   Reply With Quote
Old 04-11-2008, 09:20 AM   #9
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,721
Default

Quote:
Originally Posted by aldi View Post
i ve made n allgorithm (spend weeks of researches) that detects the onsets even in complex polyphone material and i d like to see that as peakfiles if i wish just that these researches i did werent completely useless.

aldi,

I will look at adding an API to let you hook custom-drawing of items, letting you get the PCM audio/etc and draw whatever you like, if you think that would be useful..

-Justin
Justin is offline   Reply With Quote
Old 04-11-2008, 09:28 AM   #10
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by Justin View Post
draw whatever you like, if you think that would be useful..

-Justin
Ah hah, well that would be something... Would it be like a bitmap and not just being able to draw waveform style graphs?
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 04-11-2008, 09:38 AM   #11
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,721
Default

Quote:
Originally Posted by Xenakios View Post
Ah hah, well that would be something... Would it be like a bitmap and not just being able to draw waveform style graphs?
That's what I'm contemplating..
Justin is offline   Reply With Quote
Old 04-11-2008, 10:04 AM   #12
aldi
Human being with feelings
 
aldi's Avatar
 
Join Date: Jun 2006
Posts: 970
Default

thats plain awsome justin !!

damn, how i love the way things are here at cockos.


thx a lot justin


ah, and btw, drawing waveformstyle would be enough for me (as i hope that won't slow down the drawing) but sure it would be cool to draw bitmap stuff also
__________________
REAPER is FANTASTIC

pending fr's: NONE ! :D

Last edited by aldi; 04-11-2008 at 10:06 AM.
aldi is offline   Reply With Quote
Old 04-11-2008, 10:13 AM   #13
beatbybit
Human being with feelings
 
beatbybit's Avatar
 
Join Date: Jul 2006
Location: Hungary
Posts: 3,129
Default

you guys,

you ROCK!

and RULE!

and everything.




thank you so much
__________________
panda in the desert
beatbybit is offline   Reply With Quote
Old 04-11-2008, 10:26 AM   #14
Tallisman
Human being with feelings
 
Tallisman's Avatar
 
Join Date: Jan 2007
Location: in the middle of the icecube.
Posts: 7,403
Default

very cool.

.t
__________________
.t

_____________________________
http://jomei.bandcamp.com <--My Middle Son.

http://tallisman.bandcamp.com <--Me.

"Excuse me. Could you please point me in the direction of the self-help section?"
Tallisman is offline   Reply With Quote
Old 05-01-2008, 10:09 AM   #15
aldi
Human being with feelings
 
aldi's Avatar
 
Join Date: Jun 2006
Posts: 970
Default

news on this ?? can't wait to do that plug
__________________
REAPER is FANTASTIC

pending fr's: NONE ! :D
aldi is offline   Reply With Quote
Old 06-16-2008, 07:03 AM   #16
aldi
Human being with feelings
 
aldi's Avatar
 
Join Date: Jun 2006
Posts: 970
Default

no news ???
__________________
REAPER is FANTASTIC

pending fr's: NONE ! :D
aldi is offline   Reply With Quote
Old 06-16-2008, 08:59 AM   #17
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by aldi View Post
no news ???
No news at Reaper front at all for some time...

Well, anyway, I'd like to know about this myself too. I would loooove a custom drawable item graphics system... I've messed around with a custom PCM_source for items these past few days (a random tone generator), and it could use some kind of visuals for the items, but plain peak graphics are not ideal in this case...
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.

Last edited by Xenakios; 06-16-2008 at 09:01 AM.
Xenakios is offline   Reply With Quote
Old 07-20-2008, 05:07 PM   #18
aldi
Human being with feelings
 
aldi's Avatar
 
Join Date: Jun 2006
Posts: 970
Default

is this now possible with the new api feature of getting the peakbitmaps ?
__________________
REAPER is FANTASTIC

pending fr's: NONE ! :D
aldi is offline   Reply With Quote
Old 07-20-2008, 05:27 PM   #19
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by aldi View Post
is this now possible with the new api feature of getting the peakbitmaps ?
I don't think so, sorry. It works so that you can get the same style audio file peaks bitmap, what Reaper shows, into an extension plugin...I requested that, and I suppose it was easier for the devs (mainly Schwa) to implement that than the ability for Reaper to show custom bitmaps on the items on tracks.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 -7. The time now is 05:17 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.