[#403837] Why none of the block giving the expected output with the "enumerator"? — Arup Rakshit <lists@...>

Why none of the block giving the expected output with the "enumerator"?

9 messages 2013/02/02

[#403870] Confusion with Enum#with_object block argument construct — Arup Rakshit <lists@...>

C:\>irb

9 messages 2013/02/03

[#403920] Character classes use in Ruby — Love U Ruby <lists@...>

Can anyone help me by giving an explanatory example of each of the

13 messages 2013/02/04

[#403935] How to stop page loading using selenium-web driver? — Love U Ruby <lists@...>

How to stop page loading using selenium-web driver?

11 messages 2013/02/04

[#403972] Ruby could recognize the values when putting into a webpage text filed. — Love U Ruby <lists@...>

SGksCgpJIGhhdmUgc29tZSB2YWx1ZXMgaW4gbXkgRXhjZWwgYXMgYmVsb3c6

9 messages 2013/02/05

[#403986] old syntax? what's going on here — tamouse mailing lists <tamouse.lists@...>

I have this in a _spec.rb file: (a gem I inherited at work)

11 messages 2013/02/05

[#404005] Implementing DRY with a function call — Rob Marshall <lists@...>

Hi,

12 messages 2013/02/05

[#404006] using an instance variable inside a method — FirstName Surname <lists@...>

Hello.

19 messages 2013/02/05

[#404021] Not able get the label text incurred with <input> element — Love U Ruby <lists@...>

I do have a below `HTML`:

18 messages 2013/02/05

[#404025] Symbol.defined? — Student Jr <lists@...>

Symbol deserialization from external sources is now known to be

15 messages 2013/02/06

[#404058] Ruby 1.9.3-p362 on Mac OSX — Peter Bailey <lists@...>

Hi,

13 messages 2013/02/06

[#404082] Problem building Ruby 1.9.3 patchlevel 385 under AIX 7.1 — Ruby Student <ruby.student@...>

Hello World!

10 messages 2013/02/06

[#404101] Issues from an extreme beginner — Bruce Palmer <lists@...>

Hey guys, great to be part of such a great community! I look forward to

19 messages 2013/02/07
[#404104] Re: Issues from an extreme beginner — Bruce Palmer <lists@...> 2013/02/07

Ahh, thank you Matthew! That was just the push I needed!

[#404208] elegant way to determine if something is defined — tamouse mailing lists <tamouse.lists@...>

Something like:

15 messages 2013/02/10

[#404218] Ruby Equivalent to VB's "With"? — Joel Pearson <lists@...>

I've looked around but I couldn't find anything helpful on this,

11 messages 2013/02/10

[#404235] The "ruby way" to do desktop applications? — "guirec c." <lists@...>

Hello,

17 messages 2013/02/11

[#404238] Best books for "advanced" programmers — "guirec c." <lists@...>

Hello,

18 messages 2013/02/11

[#404245] Issue with Excel column values read. — Love U Ruby <lists@...>

Hi,

22 messages 2013/02/11

[#404344] Ruby command line options s and S — Love U Ruby <lists@...>

Can anyone help me to understand the difference between s and S with

15 messages 2013/02/13

[#404386] Re: Ruby command line options s and S — "D. Deryl Downey" <me@...>

Dude!

20 messages 2013/02/14

[#404387] Ruby Multithreaded producer-consumer problem — Abhijit Sarkar <lists@...>

Hi,

26 messages 2013/02/14
[#404896] Re: Ruby Multithreaded producer-consumer problem — Abhijit Sarkar <lists@...> 2013/02/24

Bump!

[#404456] skip iteration in each loop — Saurav Chakraborty <lists@...>

I want to skip iteration for few values depending on dynamic condition.

11 messages 2013/02/15

[#404491] so, what's the proper way to replace funcionality of GOTO ? — "Stu P. D'naim" <lists@...>

I need to make few scripts for tasks I do often manually, but last time

27 messages 2013/02/15
[#404492] Re: [from BASIC to Ruby] so, what's the proper way to replace funcionality of GOTO ? — Love U Ruby <lists@...> 2013/02/15

Stu P. D'naim wrote in post #1097111:

[#404494] Re: [from BASIC to Ruby] so, what's the proper way to replace funcionality of GOTO ? — Ryan Victory <ryan@...> 2013/02/15

Love U Ruby: I'm really not sure what you meant by that response, but

[#404570] What is Ruby's default constructor? — Love U Ruby <lists@...>

Hi,

12 messages 2013/02/17

[#404632] Re: splat operator and Ruby instance variable assignments — Marc Heiler <lists@...>

Ok, understood what the guy wants ...

17 messages 2013/02/19
[#404640] Re: splat operator and Ruby instance variable assignments — Love U Ruby <lists@...> 2013/02/19

Marc Heiler wrote in post #1097736:

[#404645] Re: splat operator and Ruby instance variable assignments — Ryan Davis <ryand-ruby@...> 2013/02/19

[#404646] Re: splat operator and Ruby instance variable assignments — Love U Ruby <lists@...> 2013/02/19

Ryan Davis wrote in post #1097840:

[#404647] Re: splat operator and Ruby instance variable assignments — Peter Hickman <peterhickman386@...> 2013/02/19

On 19 February 2013 20:35, Love U Ruby <lists@ruby-forum.com> wrote:

[#404648] Re: splat operator and Ruby instance variable assignments — Love U Ruby <lists@...> 2013/02/19

Peter Hickman wrote in post #1097848:

[#404696] THE CLASS/OBJECT CHICKEN-AND-EGG PARADOX — "Xavier R." <lists@...>

Hi,

25 messages 2013/02/20
[#404699] Re: THE CLASS/OBJECT CHICKEN-AND-EGG PARADOX — Matt Mongeau <halogenandtoast@...> 2013/02/20

Maybe you could provide more detail about what you are confused about. To

[#404700] Re: THE CLASS/OBJECT CHICKEN-AND-EGG PARADOX — "Xavier R." <lists@...> 2013/02/20

Matt Mongeau wrote in post #1098058:

[#404705] Re: THE CLASS/OBJECT CHICKEN-AND-EGG PARADOX — Matt Mongeau <halogenandtoast@...> 2013/02/20

It's not really a paradox. Take for example

[#404738] backslash substitution — Mario Ruiz <lists@...>

don't know why... but this is not working

18 messages 2013/02/21

[#404809] Difference of 2 dates interms of years. — "Xavier R." <lists@...>

how can we get the experience years between two dates(ex:2012-01-11 to

13 messages 2013/02/22

[#404817] Not able to understand the difference between "||=" and "|=". — "Xavier R." <lists@...>

>> a = []

12 messages 2013/02/22

[#404839] range is not assigning to the splat variable. — Love U Ruby <lists@...>

Why splat variable couldn't take in the below two code the "range" ->

10 messages 2013/02/23

[#404842] Why class returning its own name when "include" statement? — Love U Ruby <lists@...>

I was actually playing around with the class definition return values.

16 messages 2013/02/23
[#404844] Re: Why class returning its own name when "include" statement? — Love U Ruby <lists@...> 2013/02/23

@Stefano Yes you are right. The below code is proved that.

[#404867] how to see the class creation time in Ruby? — Love U Ruby <lists@...>

In Ruby any chance to see the last-modified time of a specific class?

15 messages 2013/02/23

[#404901] Confusion with `nil` value being produced by IRB in case of Array#size manipulation. — Love U Ruby <lists@...>

enum[int] =3D obj =E2=86=92 obj

10 messages 2013/02/24

[#404921] How should I print only the last combination when using Array#combination(n) ? — Love U Ruby <lists@...>

>> a = [1,2,3]

15 messages 2013/02/24

[#405026] Please, help (GCD) greatest common divisor. — Caddy Tonks Lupin <lists@...>

Write a program to read two integers and show their greatest common

17 messages 2013/02/26

[#405059] Does this specific sound library exist? — Dirk Vogel <lists@...>

Hi there,

16 messages 2013/02/26

[#405067] Mac OS 10.8.2 and openssl — "Dr. Hegewald" <hegewald@...>

Hi everybody,

24 messages 2013/02/27

[#405079] Why `10` not returned without the `return` from the block ? — Love U Ruby <lists@...>

CODE - I

10 messages 2013/02/27

[#405107] Object track llist for a particular class. — "Xavier R." <lists@...>

Say I have created more than one instances from a particular class as

13 messages 2013/02/27

[#405145] Discussion on Ruby's `alias` — Tukai Patra <lists@...>

>> class Foo

27 messages 2013/02/28

[#405175] telnet - how to loop through commands listed in a file — Bob Ford <lists@...>

Let me first explain what I'm trying to do. I have written a very

18 messages 2013/02/28

Re: Does this specific sound library exist?

From: "Carlo E. Prelz" <fluido@...>
Date: 2013-02-27 14:51:26 UTC
List: ruby-talk #405085
	Subject: Re: Does this specific sound library exist?
	Date: mer 27 feb 13 09:27:32 +0900

Quoting Dirk Vogel (lists@ruby-forum.com):

> 1. I may stress I'm a musician, not a programmer. As I worked with
> Max/MSP all times, I know virtually nothing about IDEs, libraries, or
> even different GUI guidelines for all these OS platforms. With Max/MSP
> on my Mac, I'm able to develop little sound utilities as standalones,
> and there's a Max runtime app that permits to run those standalones even
> to those who don't own Max. So they cannot edit the standalone, but they
> can use it, and the Max runtime app exists for Mac and Windows. (It's
> like the Adobe Acrobat concept: most people use the Acrobat Reader to
> read PDFs, but only a few have got Acrobat to build PDFs.) So that's my
> background.

Each platform has a different executable acrobat reader. The source
code is not public, but I believe that the various codebases only
share the library that interprets the PDF language (the language is
public, by the way, so I can read and write PDF without using anything
from Adobe). For the rest, Adobe will have some programmers who know
how to write user interfaces for each platform. Remember that Adobe is
a megacorp. 

I am familiar with PureData, rather than Max. When Miller wrote
PureData, he used an existing UI: Tcl/TK. This has also been the
choice of the early Ruby developers. But Tcl/TK is a bit lame, and
Miller did a HUGE work to massage Tcl/TK to do what he wanted. I
believe that the code in Max draws and manages its own graphic
components directly (because they are very specific to the
application). If true, at the moment of porting Max from Mac to
Windows, the problem was just to provide the way to draw graphic
primitives (i.e. coloured rectangles, lines, characters...). The big
work had been done before. 

Basically, what you do not have is a solid common frame that would
make such an effort as yours *easy*. And the reason for this is
obvious: each platform has a UI, and nobody wants to discard it in
favour of another one. This is why we do not all speak Esperanto,
after all...

> 2. Evidently the UI elements I built in my sound utilities look and work
> the same under Mac and Windows, and it's impossible to respect the GUI
> guidelines of both with the same UI as they differ, like everybody
> knows. And even for what I'm planning to program this time I think it's
> not that important that it feels like an application specifically built
> for this or that OS. So I'm aware of the fact that many professional
> programmers prefer to invest time in the development of specific UIs for
> different platforms. I only hoped that an IDE like QT may effectively
> take charge of the compilation of an UI you may have to develop only
> once even if it runs on several OS.

It is not the fact of them *looking* different. The fact is that the
*model* that they are based on is completely different. Not only the
graphics model, specifically the way the loop of events is handled. 

About QT I am not an expert because it is written in C++, and I also
do not like the look of it from pure aesthetic reasons. Maybe it cuts
your cake.

> 3. So if I get you right, it's not reasonable to use Ruby if I've to get
> a UI for Android.

Even under Android, you can get ownership of the bitmap of the screen,
so if you develop your UI the hard way, you can reach your holy grail,
like Adobe and the people behind Max do. What I mean is that
downloading the Android SDK and looking at some examples brings you
quite quickly to the point where you can spit out your app with two
buttons and an image. Operating any other way is not only much more
difficult: it goes against the grain of what Google wants you to do,
so they help you a lot less on your way... The UI is the bottleneck: a
daemon in C is easy to write.

> 4. Now to the pitch shifting method (or library or whatever). I already
> know that libraries for a certain programming language may be written in
> another language. I also know that pitch shifting is a time sensitive
> operation and that a library that takes charge of it must be written in
> assembler or C or something like that. But if I get the idea of
> libraries right, they exist to incorporate this kind of function in a
> programming language that may not be able to deliver it on its own, and
> once you compile your program for a certain OS, it runs this function.
> Now you tell me that there's an OS specific "underlying audio layer" to
> deal with. What does that actually mean? Let's say for the argument's
> sake that I'm to write my program in Java. Java runs on Android, but
> also on Windows. Do you suggest I'd have to actually use two different
> libraries for pitch shifting depending on the OS I'll compile my program
> for? Even if Java runs on both?

A library for the stretch/compress most probably exists in ANSI C -
you can compile it wherever ANSI C is understood. So you can have a
daemon that gets an audio file, processes it, and dumps it into
another file. What is different is when you have to send your samples
to the DAC. There, you must be sure that the audio chip is
appropriately initialized and configured (and each chip is different),
then you must be sure that the sample size, the speed, the number of
channels, and a few other parameters are set the way you need them to
be. Then you must start feeding to the DAC samples, at the right
speed. Trying not to be disturbed by other tasks being run.

All this is not trivial. And it has been solved in different ways by
those who tackled it for the various OSes.

> This comes as a surprise to me as in Max/MSP, pitch shifting exists as
> an object you simply put in your data stream, and you get what you
> want...

From what I know, Max is very well optimized. Lots of work went into
it.

Carlo

-- 
  *         Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido@fluido.as             che bisogno ci sarebbe
  *               di parlare tanto di amore e di rettitudine? (Chuang-Tzu)

In This Thread