Skip to content

About

A simple web based random stroker powered by Ayva.

Resources

Stars

2 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

ayva-stroker-lite

A small web based stroker app powered by Ayva.js and Vue 3.

This repository is a personal fork of Ayva Stroker Lite. The original step-by-step guide can be found here.

Features

Output panel

Output panel: one limit slider and one max slider per axis, plus the ALL and max all master sliders

Every axis (stroke, surge, sway, twist, roll, pitch) is controlled by two sliders:

  • an axis limit slider (two handles) that clamps the axis' travel. The limits are pushed straight to the device through ayva.updateLimits().
  • a max <axis> slider (0-100 %) that caps how much of its full range that axis is allowed to use during free play. Exactly like the original Max Amplitude, the center of the motion also drifts randomly from one stroke to the next, so free play keeps moving around instead of repeating the same window forever.

Each axis also carries two checkboxes, one in front of each of its sliders:

  • the left one decides whether the ALL slider drives that axis;
  • the right one decides whether max all drives it.

An unchecked axis keeps its own values when a master slider moves. The two checkboxes on the ALL row tick or untick their whole column at once. Everything starts ticked and is remembered between sessions.

Two master sliders push one value to every axis at once:

  • ALL applies the same min/max to the six axis limit sliders.
  • max all applies the same value to the six max sliders.

The stroke axis keeps the historical max-amplitude name, so previously saved values and scripts reading parameters.maxAmplitude keep working.

Free play

  • Random BPM range, switching either instantly or with continuous acceleration.
  • Random pause intervals and durations, with a smooth deceleration/acceleration ramp on each side of every pause.
  • Random pattern and transition durations.
  • Optional default twist with its own range, phase and eccentricity.
  • The built-in TempestStroke library, plus custom strokes and AyvaScript behaviors.
  • Manual mode: trigger any stroke directly from the Strokes panel.

Voice commands

The Output panel has a Voice button that listens through the browser's Web Speech API (Chrome and Edge), a language picker (Français, English, Español, 日本語, 中文) and a Voice commands link that opens the full phrase list. Saying a phrase moves the two handles of the stroke or twist limit slider, stopped as well as during playback.

Voice bar (microphone, language picker, status) and the command list in five languages

Goal Français English Español 日本語 中文
Stroke higher plus haut higher más alto もっと上 高一点
Stroke lower plus bas / moins haut lower más bajo もっと下 低一点
Stroke range wider plus large wider más ancho もっと広く 宽一点
Stroke range narrower plus serré narrower más estrecho もっと狭く 窄一点
Twist more tourne plus twist more gira más もっとひねって 转多一点
Twist less tourne moins twist less gira menos ひねりを弱く 转少一点
BPM faster plus vite / accélère faster / speed up más rápido / acelera もっと速く / 加速 快一点 / 加速
BPM slower moins vite / ralentis slower / slow down más lento / desacelera もっと遅く / 減速 慢一点 / 减速

faster and slower shift the whole BPM range (both handles) by 5 BPM, like dragging the range in the Parameters panel.

Matching is deliberately forgiving so commands can be improvised: accents, capitals and punctuation are ignored, each language understands many variants of the same command, and filler words are allowed. As a last resort a sentence matches when it contains every key word of a phrase, in any order.

Browser support

Tested and working well with Microsoft Edge. Voice commands need the Web Speech API, which Chrome and Edge provide.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

Lint with ESLint

npm run lint

Credits

Ayva Stroker Lite is created and maintained by ayvasoftware. All credit for the original app, the Ayva.js library and the TempestStroke patterns goes to its authors.

About

A simple web based random stroker powered by Ayva.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages