Juce and VST plugins

Discussion and support for general JUCE issues

Postby cialz » Tue Aug 02, 2005 9:26 am

Sorry, I found the mistake!

I must implement getNumRows and paintListBoxItem

:lol:
JUCE: 2.0
Knifes and Forks:
Windows 7, Visual Studio 2012
Mac OSX Lion, XCode 4
cialz
JUCE UberWeenie
 
Posts: 103
Joined: Mon May 09, 2005 2:00 pm
Location: Italy

Postby haydxn » Tue Aug 02, 2005 9:57 am

that's right :) always make sure you define any pure virtual functions that are in your base class. that always gets me with textEditorListener, because there are quite a few of them!
xh
User avatar
haydxn
JUCE UberWeenie
 
Posts: 1184
Joined: Sun Apr 10, 2005 2:46 pm
Location: Manchester, UK

Postby Karbon L. Forms » Tue Aug 02, 2005 10:12 am

where's the "implement pure virtual function" button anyway?

can't be hard can it IDE makers? look at base class, look for "= 0" on declarations, ask us if we want inline, impl file or at the end, create a stub!
.................................
"Hell is other People" J.P.Sartre
.................................
Karbon L. Forms
JUCE UberWeenie
 
Posts: 368
Joined: Sat Sep 04, 2004 8:16 am
Location: Aberdeen, Scotland

Postby jules » Tue Aug 02, 2005 12:18 pm

where's the "implement pure virtual function" button anyway?

can't be hard can it IDE makers? look at base class, look for "= 0" on declarations, ask us if we want inline, impl file or at the end, create a stub!


couldn't agree more. Sometimes I wonder if the people who write IDEs actually ever write code themselves.. but I guess they must do, mustn't they?
User avatar
jules
Fearless Leader
 
Posts: 17380
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Multichannel

Postby cialz » Tue Aug 02, 2005 1:01 pm

Sorry...could I read and manage multichannel audio files vith Juce AudioFormat?

I have to reach 24 channels for my purposes.

thanx
JUCE: 2.0
Knifes and Forks:
Windows 7, Visual Studio 2012
Mac OSX Lion, XCode 4
cialz
JUCE UberWeenie
 
Posts: 103
Joined: Mon May 09, 2005 2:00 pm
Location: Italy

Postby jules » Tue Aug 02, 2005 1:28 pm

24 channels in one file? That's quite a lot.

The audio file readers I've written so far just do stereo, but there's no reason you couldn't do your own audiofilereader/writer that does as many channels as you need.

Any reason you're not using 24 separate wave files? That's probably easier to edit with.
User avatar
jules
Fearless Leader
 
Posts: 17380
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Multichannel

Postby cialz » Tue Aug 02, 2005 2:36 pm

Yes Jules, we are using multichannel audio files working with Ambisonics technology.

We record sound from a microphone array (24 omni condenser microphones)

I've just written a multichannel sf player and recorder.

I'm writing a MultiVolver (multichannel convolver), for convolve our impulse responses with multichannel registrations.
JUCE: 2.0
Knifes and Forks:
Windows 7, Visual Studio 2012
Mac OSX Lion, XCode 4
cialz
JUCE UberWeenie
 
Posts: 103
Joined: Mon May 09, 2005 2:00 pm
Location: Italy

Postby jules » Tue Aug 02, 2005 2:54 pm

groovy stuff!
User avatar
jules
Fearless Leader
 
Posts: 17380
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Multichannel

Postby cialz » Tue Aug 02, 2005 3:44 pm

I've tried to show the number of channels of one 24 chs file with AudioFormatReader.

It shows me 24.

Do yuo know if the read and write functions works with any general number of channels?

thanx
JUCE: 2.0
Knifes and Forks:
Windows 7, Visual Studio 2012
Mac OSX Lion, XCode 4
cialz
JUCE UberWeenie
 
Posts: 103
Joined: Mon May 09, 2005 2:00 pm
Location: Italy

Postby jules » Tue Aug 02, 2005 3:53 pm

the classes I've done will only read stereo, but you could mod them or write your own.
User avatar
jules
Fearless Leader
 
Posts: 17380
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

ListBox position

Postby cialz » Wed Aug 03, 2005 8:33 am

Hi, I'm sorry for my ignorance: I can't move the listbox at my wished position

I've tried with setBounds,setMinimumContentWidth but anything happens

Could you help me?

thanx
JUCE: 2.0
Knifes and Forks:
Windows 7, Visual Studio 2012
Mac OSX Lion, XCode 4
cialz
JUCE UberWeenie
 
Posts: 103
Joined: Mon May 09, 2005 2:00 pm
Location: Italy

Postby jules » Wed Aug 03, 2005 10:16 am

well setBounds will definitely move it, no question about that! You're probably just moving it back in your resized() method or something.
User avatar
jules
Fearless Leader
 
Posts: 17380
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Fill a ListBox

Postby cialz » Sat Aug 13, 2005 12:11 pm

Hi,
I used a SimpleListBox to show some file name retrieved from a Open Dialog Box.

But now I need to drag these filename to a target, so I have to use ListBox.

I don't understand how to fill its rows with my Component, which will be dragged somewhere.

Have I to call n-times the createRowComponent ?

Another question: must I inherit from ListBox to implement this kind of ListBox, and write createRowComponent / updateRowComponent ?

thanx for help
JUCE: 2.0
Knifes and Forks:
Windows 7, Visual Studio 2012
Mac OSX Lion, XCode 4
cialz
JUCE UberWeenie
 
Posts: 103
Joined: Mon May 09, 2005 2:00 pm
Location: Italy

Matrices

Postby cialz » Tue Aug 16, 2005 7:55 pm

Is there any class to create and manipulate matrices of objects with JUCE?

Something like OwnedArray
JUCE: 2.0
Knifes and Forks:
Windows 7, Visual Studio 2012
Mac OSX Lion, XCode 4
cialz
JUCE UberWeenie
 
Posts: 103
Joined: Mon May 09, 2005 2:00 pm
Location: Italy

Maybe [OT]...better,sure OT

Postby cialz » Mon Aug 22, 2005 3:03 pm

This is a programming question.

I reach an heap error executing this code in the Editor constructor:

Code: Select all
   //Allocation
   target    = new IRCellTarget* [ins];

   //Indexing all coloums
   for ( i = 0; i < ins; i++)
        target[i] = new IRCellTarget[outs];

   for (i = 0; i < ins; i++)
   {
      for(j = 0; j < outs; j++)
      {
         target[j][i].setRowCol(j,i);
         target[j][i].setBounds(FIRST_CELL_X + i * (cellWidth + 5),FIRST_CELL_Y + j * (cellHeight + 5),cellWidth,cellHeight);
         addAndMakeVisible (&target[j][i]);
      }
   }
   



The error appears only when the matrix dimension is NxM,not when N=M.

I'm sure you can solve this problem

Thanx in advance
JUCE: 2.0
Knifes and Forks:
Windows 7, Visual Studio 2012
Mac OSX Lion, XCode 4
cialz
JUCE UberWeenie
 
Posts: 103
Joined: Mon May 09, 2005 2:00 pm
Location: Italy

PreviousNext

Return to General JUCE discussion

Who is online

Users browsing this forum: No registered users and 4 guests