processing

Exporting a Processing sketch with audio to JavaScript

北战南征 提交于 2019-11-28 02:10:24
问题 How could I implement sound in my Processing sketch that works when I export the sketch to JavaScript? I've written a sketch in Processing that includes two audio (.wav) loops. These loops are played through the Movie class upon mousePressed() and mouseDragged() . The sketch works in normal/Java mode, but does not load when changed to JavaScript mode. The sketch only works in JavaScript mode when I remove the sound. I've noticed that other sketches that use the Movie class as well as sketch

How to export an Eclipse Project with External Jar dependencies?

与世无争的帅哥 提交于 2019-11-28 00:18:50
问题 In Processing, I'd like to import a library I've written in Java which wraps around an external library (a .jar file). Processing appears to import my own library, but when I call the constructor (which references some classes in the external library), I get a java.lang.NoClassDefFoundError in the Processing GUI console. If instead of including the External .jar in my Eclipse buildpath, I use the library's actual source code and export all of that, Processing does not complain. How might I be

PROCESSING: How can I draw only every x frames?

做~自己de王妃 提交于 2019-11-27 19:34:00
问题 I'm experimenting with the following Code: //3D Spectrogram with Microphone Input //Modified by kylejanzen 2011 - https://kylejanzen.wordpress.com //Based on script written by John Locke 2011 - http://gracefulspoon.com //Output .DXF file at any time by pressing "r" on the keyboard import processing.dxf.*; import ddf.minim.analysis.*; import ddf.minim.*; import peasy.*; PeasyCam cam; FFT fftLin; FFT fftLog; Waveform audio3D; Minim minim; AudioInput microphone; boolean record; PFont font; float

Processing: efficiently drawing a gradient [closed]

丶灬走出姿态 提交于 2019-11-27 16:23:41
I'm new to Processing and I've been working on simulating electron motion. Everything seems fine until I'm try to add a gradient color to each particle.The frame rate drops considerably. Here is what I've tried so far: float a=0; float s; void setup() { size(500,500); smooth(); frameRate(500); colorMode(HSB,360,100,100); noStroke(); ellipseMode(RADIUS); } void draw() { background(200,0,100); pushMatrix(); translate(width/2, height/2); rotate(radians(-18)); for ( int r = width ; r >= 0; r = r - 1 ) { s = 500*exp(-r); fill(202, s, 100); ellipse(100*cos(a), 50*sin(a), r, r); } a+=0.1; popMatrix()

Processing - how to send data (through websockets?) to javascript application

℡╲_俬逩灬. 提交于 2019-11-27 14:28:41
问题 I'm playing around with processing and wonder, if i can send data from processing to a javascript app. Is there any possibility to create a (e.g. websocket) server with processing? Thanks in advance! 回答1: I've tried Java WebSockets in eclipse for desktop(with or without extending PApplet) and it works on Android as well. If you want to use the library in Processing you need to do this: create a folder named java_websocket in Documents/Processing/libraries Inside the newly created java

Paper: ModelarDB

狂风中的少年 提交于 2019-11-27 13:59:15
Problem: how to store and querry massive amounts of high quality sensor data ingested in real-time from many sensors. Properties paramount for a TSMS: distribution; stream processing; compression; efficient retrieval; approximate query processing; extensibility; Niche: we found no TSMS using multi-model compression for our survey; Also, the existing methods do not provide all the properties listed above. They either provide no latency guarantees [22, 40], require a trade-off between latency and compression [37], or limit the supported model types [22, 40]. ModelarDB, in contrast, provides all

Kinect for Xbox 360 freezes and disconnects from USB after running Processing SimpleOpenNi depth image example

喜夏-厌秋 提交于 2019-11-27 12:37:06
问题 please help I've been trying to set up kinect for XBOX 360 to run on ubuntu in order to start developing an application to control a humanoid robot. for the past four days I've been searching , downloading , installing and trying dozens of libraries and drivers to get the kinect to work on Ubuntu. in the beginning none was working and I was only able to read the RGB camera with "Camorama" and "guvcview" no matter what library or driver I attempted to run.. Finally, I installed a fresh copy of

Processing: How do i create an object every “x” time

ぃ、小莉子 提交于 2019-11-27 08:40:15
问题 What I want to do is to create a new planet in my system for example every 10 seconds and that it starts to move and also prints a "hello" . At the end I want that the 8 planets (ellipses) will be moving together. I try to use delay(); but I failed . Can someone help me please? Planet [] planetCollection = new Planet [8]; float [] wid2 = {100,200,300,400,500,600,700,800}; float [] hig2 = {50,75,100,125,150,175,200,225}; int [] colorR = {100,800,300,400,500,600,700,800}; int [] colorG = {50

007-Zabbix Server 自带模板监控MySQL数据库

陌路散爱 提交于 2019-11-27 08:19:39
监控数据库分为三种: 1.Zabbix Server 自带模板监控无密码MySQL数据库 2.Zabbix Server 自带模板监控有密码MySQL数据库 3.Zabbix Server 自带模板监控更加灵活MySQL数据库 一: 一.安装MariaDB 1>.安装MariaDB [root@node102 ~]# yum -y install mariadb-server Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.163.com * extras: mirrors.aliyun.com * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package mariadb-server.x86_64 1:5.5.60-1.el7_5 will be installed --> Processing Dependency: perl-DBI for package: 1:mariadb-server-5.5.60-1.el7_5.x86_64 --> Processing Dependency: perl-DBD-MySQL for

How to animate from one x,y coordinate to another? (Java/Processing)

此生再无相见时 提交于 2019-11-27 08:19:24
问题 I am making a simple animation in Processing. I want to animate an image from its starting point to a defined x,y value on the screen. I have 2 methods, update() and draw() , which are run on every tick. update() is where the code will go to process the x/y coordinates to provide to the draw() method on the next tick. The draw() method then draws the image, passing in the updated x and y values. minimal example: class ScrollingNote { float x; float y; float destX; float destY; PImage noteImg;