|
|
|
04-09-2008, 06:38 PM
|
#1
|
Human being with feelings
Join Date: Jun 2006
Posts: 970
|
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.
|
|
|
04-09-2008, 11:31 PM
|
#2
|
Human being with feelings
Join Date: Jun 2006
Posts: 970
|
sorry, i edited again, hopefully someone will still take a look
__________________
REAPER is FANTASTIC
pending fr's: NONE ! :D
|
|
|
04-09-2008, 11:55 PM
|
#3
|
Human being with feelings
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
|
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.
|
|
|
04-10-2008, 06:17 AM
|
#4
|
Human being with feelings
Join Date: Jun 2006
Posts: 970
|
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
|
|
|
04-10-2008, 08:22 AM
|
#5
|
Human being with feelings
Join Date: Jan 2007
Location: in the middle of the icecube.
Posts: 7,403
|
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
|
|
|
04-10-2008, 08:42 AM
|
#6
|
Human being with feelings
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
|
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.
|
|
|
04-10-2008, 10:06 AM
|
#7
|
Human being with feelings
Join Date: Jan 2007
Location: in the middle of the icecube.
Posts: 7,403
|
and that, dear X, is why i ask!
.t
|
|
|
04-10-2008, 05:17 PM
|
#8
|
Human being with feelings
Join Date: Jun 2006
Posts: 970
|
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
|
|
|
04-11-2008, 09:20 AM
|
#9
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,721
|
Quote:
Originally Posted by aldi
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
|
|
|
04-11-2008, 09:28 AM
|
#10
|
Human being with feelings
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
|
Quote:
Originally Posted by Justin
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.
|
|
|
04-11-2008, 09:38 AM
|
#11
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,721
|
Quote:
Originally Posted by Xenakios
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..
|
|
|
04-11-2008, 10:04 AM
|
#12
|
Human being with feelings
Join Date: Jun 2006
Posts: 970
|
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.
|
|
|
04-11-2008, 10:13 AM
|
#13
|
Human being with feelings
Join Date: Jul 2006
Location: Hungary
Posts: 3,129
|
you guys,
you ROCK!
and RULE!
and everything.
thank you so much
__________________
panda in the desert
|
|
|
04-11-2008, 10:26 AM
|
#14
|
Human being with feelings
Join Date: Jan 2007
Location: in the middle of the icecube.
Posts: 7,403
|
very cool.
.t
|
|
|
05-01-2008, 10:09 AM
|
#15
|
Human being with feelings
Join Date: Jun 2006
Posts: 970
|
news on this ?? can't wait to do that plug
__________________
REAPER is FANTASTIC
pending fr's: NONE ! :D
|
|
|
06-16-2008, 07:03 AM
|
#16
|
Human being with feelings
Join Date: Jun 2006
Posts: 970
|
no news ???
__________________
REAPER is FANTASTIC
pending fr's: NONE ! :D
|
|
|
06-16-2008, 08:59 AM
|
#17
|
Human being with feelings
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
|
Quote:
Originally Posted by aldi
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.
|
|
|
07-20-2008, 05:07 PM
|
#18
|
Human being with feelings
Join Date: Jun 2006
Posts: 970
|
is this now possible with the new api feature of getting the peakbitmaps ?
__________________
REAPER is FANTASTIC
pending fr's: NONE ! :D
|
|
|
07-20-2008, 05:27 PM
|
#19
|
Human being with feelings
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
|
Quote:
Originally Posted by aldi
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.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 05:17 PM.
|