smoge / superfomus

SuperCollider bindings to Fomus Music Notation
GNU General Public License v3.0
24 stars 4 forks source link

fomus: command not found #4

Open prko opened 1 year ago

prko commented 1 year ago

Dear smoge,

I have evaluated the following two codes, slightly modified from your sample code in the help document:

(
a = 12.collect({|i|
  ( 'midinote': (
      (63 + rrand(-6,6.5) + [0,8,13]) ++
      (60 + rrand(-6,6.5) + [0,5,6,9]) ),
    'dur': 1 )
});

f = Fomus();
f.lilyPath  = "/opt/homebrew/bin/lilypond";
f.lilyViewPath = "/opt/homebrew/bin/xpdf";
f.fileName = "~/SCFomus_".standardizePath;
f.add(a);
f.ly;
)
(
a = 12.collect({|i|
  ( 'midinote': (
      (63 + rrand(-6,6.5) + [0,8,13]) ++
      (60 + rrand(-6,6.5) + [0,5,6,9]) ),
    'dur': 1 )
});

f = Fomus()
.lilyPath_("/opt/homebrew/bin/lilypond")
.lilyViewPath_("/opt/homebrew/bin/xpdf")
.fileName_("~/SCFomus_".standardizePath)
.add(a)
.ly;
)

The results are as follows:

Last login: Sat Jun 24 08:53:57 on ttys000
/Users/prko/Library/Application\ Support/SuperCollider/tmp/SCStringForTerminal-1126564853.command ; exit;
(base) prko@prkoMBP2021 ~ % /Users/prko/Library/Application\ Support/SuperCollider/tmp/SCStringForTerminal-1126564853.command ; exit;
/Users/prko/Library/Application Support/SuperCollider/tmp/SCStringForTerminal-1126564853.command: line 2: fomus: command not found

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

Did I do something wrong?

prko commented 1 year ago

I realised that I had not installed fomus. I cannot install it on the Apple silicon chip. Is there no way to use it on the Apple silicon chip?

prko commented 1 year ago

I cannot install fomus on Ventura on an Intel Mac.

smoge commented 1 year ago

Hi @prko, I was not able to compile fomus on the current macOS version, but I manage to download the old package, and manually copy and change permissions (with chmod +x), and it somehow works.

If you know some C++, maybe you can give it a try and compile it.

prko commented 1 year ago

Thanks for letting me know. I could try it if I could know C++ basics.... I will try to learn C++ if I have time...

smoge commented 1 year ago

Try opening the last package for macOS, and see if the binaries work. Open the file Archive.pax.gz inside the Package and copy the binaries, then change permissions. See if that works.