FAUST

Comments Off on FAUST

To print “Hello World!” in the Faust programming language, you need to write the following code in a .fst file and then compile it. The given code is an example of how you can display the text using the OSC message protocol and will require some additional steps like setting up the required libraries and running the compiled program.

-- This file requires the UDP/OSC library, which needs to be installed first.
-- Compile the code with "faust2opc HelloWorld.fst".
-- Connect this OSC sender to a UDP receiver on port 12345 to receive the output.
-- Run the receiver and open your terminal to execute the following command:
-- ./HelloWorld -d udp --server=127.0.0.1:12345
-- Hello World! will be displayed at the OSC receiver's message list.

import faust as f
import libfaust_osc as osc

app = f.App(["HelloWorld"])

out = osc.Out("OscSender", "localhost:12345") -- Change to your receiver host and port number
with app:
    out.start()
    text = "Hello World!"
    print(text) -- This will display the message in your terminal but it's not part of the OSC output
    osc.send(out, "/name", text) -- Send the Hello World! as an OSC message using the path /name

You can also try a simpler approach without using OSC if you just want to display “Hello World!” in your terminal window by removing all the OSC-related code and printing the message directly.

Remember, this program uses Faust’s scripting language (fst), which is different from the audio programming language (dsp). The scripting language is designed for non-audio use cases like network programming or generating text files, while the audio programming language focuses on synthesizing and processing audio signals.

Prompt
NSFW, young woman, beautiful face, standing, great body, gorgeous figure, long legs, pretty eyes, long hair, learns FAUST programming language, beautiful background, magnificent scenery, Dmitri Gutov style, HD, sharp focus, stunningly beautiful, pixel-art, low-res, blocky, pixel art style, 8-bit graphics

Negative prompt
(worst quality, low quality, illustration, 3d, 2d), open mouth, tooth, ugly face, old face, long neck, verybadimagenegative, bad_prompt_version2-neg, easynegative, FastNegativeV2, sloppy, messy, blurry, noisy, highly detailed, ultra textured, photo, realistic, extra eyes, bad eyes, ugly eyes, imperfect eyes, deformed pupils, deformed iris, cross-eyed, poorly drawn face, bad face, fused face, ugly face, worst face, unrealistic skin texture, out of frame, poorly drawn hands, cloned face, double face, blurry, bad quality

Text model: neural-chat

Image model: CopaxCuteXL