electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » Instruments and Equipment » MAX/MSP - Pd
Median impossible between 0 and 1
Post new topic   Reply to topic Moderators: jksuperstar
Page 1 of 1 [7 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
badiou



Joined: Apr 27, 2007
Posts: 8
Location: mars

PostPosted: Fri Apr 27, 2007 1:20 pm    Post subject: Median impossible between 0 and 1 Reply with quote  Mark this post and the followings unread

Hello,

I try to use a median patch as sort to calculate a median for 7th last values entered.
My problem is that under 1 and between 0 and 1, all decimal values are not taken (my patch is linked here)...
It's really obstructing because datas I need to send are decimals...
Anyone has an idea ?


moyenneur.pat
 Description:

Download
 Filename:  moyenneur.pat
 Filesize:  1.12 KB
 Downloaded:  114 Time(s)

Back to top
View user's profile Send private message
EdisonRex
Site Admin


Joined: Mar 07, 2007
Posts: 4500
Location: London, UK
Audio files: 169

PostPosted: Sun Apr 29, 2007 4:16 am    Post subject: Reply with quote  Mark this post and the followings unread

At the bottom, you have two integer operations. One divides by integer 7, and below that you multiply by integer 100.

When I change those values to floating point operations

[/7.]
[* 100.]

I get floating point numbers in the bottom results.

Remember that if you are looking for fractions you cannot do any integer math in the calculations.

_________________
Garret: It's so retro.
EGM: What does retro mean to you?
Parker: Like, old and outdated.


Home,My Studio,and another view
Back to top
View user's profile Send private message Visit poster's website
badiou



Joined: Apr 27, 2007
Posts: 8
Location: mars

PostPosted: Mon Apr 30, 2007 10:17 am    Post subject: Reply with quote  Mark this post and the followings unread

Many thanks !
I understand now... It was so evident...
Back to top
View user's profile Send private message
EdisonRex
Site Admin


Joined: Mar 07, 2007
Posts: 4500
Location: London, UK
Audio files: 169

PostPosted: Mon Apr 30, 2007 11:54 am    Post subject: Reply with quote  Mark this post and the followings unread

badiou wrote:
Many thanks !
I understand now... It was so evident...


One of the problems with Max, which all programming languages share, is that one frequently misses the simplest of bugs. They are always simple when you see them. They aren't so simple when you are looking for them.

Have fun. I'd like to see what you do with the construction.

_________________
Garret: It's so retro.
EGM: What does retro mean to you?
Parker: Like, old and outdated.


Home,My Studio,and another view
Back to top
View user's profile Send private message Visit poster's website
sohcahtoa



Joined: Aug 12, 2006
Posts: 55
Location: Fargo, ND

PostPosted: Mon Apr 30, 2007 9:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

After about 8 hours trying to figure out why my program was not sending binary data, I can concur with the above statement. My program was interpreting what I thought was binary as decimal, because I never told the program it was binary data.....ahhhhh Shocked , feels good to get it fixed though
Back to top
View user's profile Send private message
badiou



Joined: Apr 27, 2007
Posts: 8
Location: mars

PostPosted: Tue May 01, 2007 6:46 am    Post subject: Reply with quote  Mark this post and the followings unread

Sure, We'll keep in touch !
Back to top
View user's profile Send private message
badiou



Joined: Apr 27, 2007
Posts: 8
Location: mars

PostPosted: Tue May 01, 2007 8:08 am    Post subject: Reply with quote  Mark this post and the followings unread

Hi edison rex,

here's the continuation , a little more complex :

http://electro-music.com/forum/topic-17826.html
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar
Page 1 of 1 [7 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » Instruments and Equipment » MAX/MSP - Pd
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
AmbiphonicDSP

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use