Skip to main content
Glama

MCP 3D Printer Server

Oscillators.js1.17 kB
import { time } from './Timer.js'; /** @module Oscillators **/ /** * Generates a sine wave oscillation based on a timer. * * @method * @param {Node<float>} t - The timer to generate the oscillation with. * @return {Node<float>} The oscillation node. */ export const oscSine = ( t = time ) => t.add( 0.75 ).mul( Math.PI * 2 ).sin().mul( 0.5 ).add( 0.5 ); /** * Generates a square wave oscillation based on a timer. * * @method * @param {Node<float>} t - The timer to generate the oscillation with. * @return {Node<float>} The oscillation node. */ export const oscSquare = ( t = time ) => t.fract().round(); /** * Generates a triangle wave oscillation based on a timer. * * @method * @param {Node<float>} t - The timer to generate the oscillation with. * @return {Node<float>} The oscillation node. */ export const oscTriangle = ( t = time ) => t.add( 0.5 ).fract().mul( 2 ).sub( 1 ).abs(); /** * Generates a sawtooth wave oscillation based on a timer. * * @method * @param {Node<float>} t - The timer to generate the oscillation with. * @return {Node<float>} The oscillation node. */ export const oscSawtooth = ( t = time ) => t.fract();

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DMontgomery40/mcp-3D-printer-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server